apiVersion: v1
kind: ConfigMap
metadata:
  name: livy-cm
  namespace: hpe-templates-compute
data:
  livy.conf: |
    # Environment variables here would be replaced by its values

    livy.repl.enable-hive-context = true
    # livy.server.recovery.mode = recovery
    # livy.server.recovery.state-store = zookeeper
    # livy.server.recovery.state-store.url = ${MAPR_ZK_QUORUM}
    # livy.server.recovery.zk-state-store.key-prefix = livy/tenant-${POD_NAMESPACE}
  livy-client.conf: |
    # Environment variables here would be replaced by its values

    livy.rsc.server.connect.timeout = 600s
    livy.rsc.client.connect.timeout = 600s
  spark-defaults.conf: |
    # Environment variables here would be replaced by its values

    spark.kubernetes.container.image.pullSecrets imagepull
    spark.kubernetes.container.image.pullPolicy IfNotPresent
    spark.kubernetes.driver.request.cores 1
    spark.kubernetes.driver.limit.cores 1
    spark.kubernetes.executor.request.cores 1
    spark.kubernetes.executor.limit.cores 1
  pre-startup.sh: |
    #!/usr/bin/env bash
  post-startup.sh: |
    #!/usr/bin/env bash
