spark启动程序命令

使用standalone的client方式启动命令:

./spark-submit --master spark://hive01:7077 --deploy-mode client --class org.apache.spark.examples.SparkPi ../examples/jars/spark-examples_2.11-2.2.0.jar  300

使用standalone的cluster方式启动命令:

./spark-submit --master spark://hive01:7077 --deploy-mode cluster  --class org.apache.spark.examples.SparkPi ../examples/jars/spark-examples_2.11-2.2.0.jar  300

使用yarn的client方式启动命令:

./spark-submit --master yarn   --deploy-mode client   --class org.apache.spark.examples.SparkPi ../examples/jars/spark-examples_2.11-2.2.0.jar  300

使用yarn的cluster方式启动命令:

./spark-submit --master yarn   --deploy-mode cluster --class org.apache.spark.examples.SparkPi ../examples/jars/spark-examples_2.11-2.2.0.jar  300

你可能感兴趣的:(spark,hadoop,yarn,spark,yarn,client,cluster)