Running Jobs as Other Users in Client Deploy Mode

This topic describes how to run jobs with Apache Spark on Apache Mesos as users other than 'mapr' in client deploy mode.

The following example submits a job running the SparkPi sample code as user 'test':
sudo -u test /opt/mapr/spark/spark-2.1.0/bin/spark-submit \ 
    --class org.apache.spark.examples.SparkPi \ 
    --master mesos://<mesos-master-node>:5050 \ 
    --deploy-mode client \ 
    /opt/mapr/spark/spark-2.1.0/examples/jars/spark-examples_2.11-2.1.0-mapr-SNAPSHOT.jar
    100