赞
踩
提交命令:
- ./bin/spark-submit \
- --class <main-class> \
- --master <master-url> \
- --deploy-mode <deploy-mode> \
- --conf <key>=<value> \
- ... # other options
- <application-jar> \
- [application-arguments]
常用命令举例:
- # Run application locally on 8 cores
- ./bin/spark-submit \
- --class org.apache.spark.examples.SparkPi \
- --master local[8] \
- /path/to/examples.jar \
- 100
-
- # Run on a Spark standalone cluster in client deploy mode
- ./bin/spark-submit \
- --class org.apache.spark.examples.SparkPi \
- --master spark://207.184.161.138:7077 \
- --executor-memory 20G \
- --total-executor-cores 100 \
- /path/to/examples.jar \
- 1000
-
- # Run on a Spark standalone cluster in cluster deploy mode with supervise
- ./bin/spark-submit \
- --class org.apache.spark.examples.SparkPi \
- --master spark://207.184.161.138:7077 \
- --deploy-mo
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。