We have a spark cluster that launches via supervisor.  Excerpts:/etc/supervisor/conf.d/spark_master.conf:command=./sbin/start-master.shdirectory=/opt/spark-1.4.1/etc/supervisor/conf.d/spark_worker.conf:command=./sbin/start-slave.sh spark://spark-master:7077directory=/opt/spark-1.4.1The challenge for supervisor is these scripts launch a daemon process and detach, where supervisor expects things to run in foreground without a fork.  So far, my efforts to convince supervisor that forking is okay or to convince spark not to fork have come to naught.  Anyone find a better way?  Thanks!
Launch Spark in Foreground via Supervisor
fork;supervisord
Solution I inferred from a previous version of the documentation:/etc/supervisor/conf.d/spark_master.conf:command=/opt/spark-1.4.1/bin/spark-class org.apache.spark.deploy.master.Masterdirectory=/opt/spark-1.4.1/etc/supervisor/conf.d/spark_worker.conf:command=/opt/spark-1.4.1/bin/spark-class org.apache.spark.deploy.worker.Worker spark://spark-master:7077directory=/opt/spark-1.4.1Launching via the bin/spark-class command stays in the foreground, and has the added satisfaction of not perpetuating the slave terminology.