Requirements for Spark Thrift Server

The MapR Kubernetes Ecosystem supports running Spark Thrift Server only in client mode. In the following example, mapr_user_secret is the name of the secret created by the ticketcreator.sh utility:
./sbin/start-thriftserver.sh \
--master k8s://[k8s_endpoint] \
--conf spark.kubernetes.container.image=<spark-image> \
--conf spark.kubernetes.namespace=<cspace-name> \
--conf spark.kubernetes.container.image.pullSecrets=mapr-imagepull-secrets \
--conf spark.kubernetes.container.image.pullPolicy=Always \
--conf spark.mapr.user.secret=<mapr-user-secret> \
--conf spark.kubernetes.authenticate.driver.serviceAccountName=mapr-<cspace-name>-cspace-sa \
--conf spark.eventLog.enabled=true \
--conf spark.eventLog.dir=maprfs:///apps/spark/<cspace-name> \
--conf spark.authenticate=false \
--conf spark.authenticate.enableSaslEncryption=false \
--conf spark.driver.host=<driver-host-resolvable-from-k8s>

For more information about the the ticketcreator.sh utility, see Using the Ticketcreator Utility to Generate Secrets.