Hi, i am submitting spark application in the following fashion
bin/spark-submit --class "NetworkCount" --master spark://abc.test.com:7077 try/simple-project/target/simple-project-1.0-jar-with-dependencies.jar But is there any other way to submit spark application through the code? like for example i am checking for a condition if true i wanted to run the spark application (isConditionTrue){ runSpark("NetworkCount","masterurl","jar") } I am aware we can set the jar and master url with spark context, but how to run it from code automatically when a condition comes true without actually using spark-submit Is it possible? -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Submiting-Spark-application-through-code-tp17452.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org