To launch a Spark application in cluster/yarn mode:
|
|
For example:123456789$ ./bin/spark-submit --class org.apache.spark.examples.SparkPi \ --master yarn \ --deploy-mode cluster \ --driver-memory 4g \ --executor-memory 2g \ --executor-cores 1 \ --queue thequeue \ lib/spark-examples*.jar \ 10
See the detail from:
http://spark.apache.org/docs/latest/running-on-yarn.html