Configuring Apache Livy for Session Recovery

Livy supports session recovery on HPE Ezmeral Runtime Enterprise. Even if the Livy server fails, Livy allows you to recover and continue working in previous sessions after deleting and restarting the Livy server pod.

Configuring Apache Livy for Session Recovery

Starting from HPE Ezmeral Runtime Enterprise 5.4.0, you can configure Apache Livy for session recovery in two different ways.

  1. Using the HPE Ezmeral Runtime Enterprise GUI during the Livy installation, see Installing and Configuring Apache Livy.
  2. Setting the kind option in sessionRecovery property in values.yaml file.

    You can use one of the following options to configure Livy for session recovery:
    1. Use the disabled option to disable the session recovery in Livy.
      NOTE
      The default value for session recovery in Livy is disabled.
      For example:
      sessionRecovery:
        ##supported sessionRecovery Kind: disabled, pvc
        kind: disabled
        ##use this option to configure volumeClaimTemplate for kind pvc
        pvcTemplate:
          metadata:
            name: livy-sessionstore
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 1Gi
    2. Use the pvc option to enable the filesystem session recovery in Livy.
      For example:
      sessionRecovery:
        ##supported sessionRecovery Kind: disabled, pvc
        kind: pvc
        ##use this option to configure volumeClaimTemplate for kind pvc
        pvcTemplate:
          metadata:
            name: livy-sessionstore
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 1Gi