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.
- Using the HPE Ezmeral Runtime Enterprise GUI during the Livy installation, see Installing and Configuring Apache Livy.
-
Setting the
kind
option insessionRecovery
property invalues.yaml
file.You can use one of the following options to configure Livy for session recovery:- Use the
disabled
option to disable the session recovery in Livy.NOTEThe default value for session recovery in Livy isdisabled.
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
- 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
- Use the