Assuming you are refering to running SparkSubmit.main programatically otherwise read this [1].
I can't find any scaladocs for org.apache.spark.deploy.* but Oozie's [2] example of using SparkSubmit is pretty comprehensive. [1] http://spark.apache.org/docs/latest/submitting-applications.html [2] https://github.com/apache/oozie/blob/master/sharelib/spark/src/main/java/org/apache/oozie/action/hadoop/SparkMain.java John 2016-05-16 2:33 GMT+10:00 Stephen Boesch <java...@gmail.com>: > > There is a committed PR from Marcelo Vanzin addressing that capability: > > https://github.com/apache/spark/pull/3916/files > > Is there any documentation on how to use this? The PR itself has two > comments asking for the docs that were not answered. >