当前位置:   article > 正文

Spark-submit提交作业_spark 提交任务submit头歌

spark 提交任务submit头歌

提交命令:

  1. ./bin/spark-submit \
  2. --class <main-class> \
  3. --master <master-url> \
  4. --deploy-mode <deploy-mode> \
  5. --conf <key>=<value> \
  6. ... # other options
  7. <application-jar> \
  8. [application-arguments]

常用命令举例:

  1. # Run application locally on 8 cores
  2. ./bin/spark-submit \
  3. --class org.apache.spark.examples.SparkPi \
  4. --master local[8] \
  5. /path/to/examples.jar \
  6. 100
  7. # Run on a Spark standalone cluster in client deploy mode
  8. ./bin/spark-submit \
  9. --class org.apache.spark.examples.SparkPi \
  10. --master spark://207.184.161.138:7077 \
  11. --executor-memory 20G \
  12. --total-executor-cores 100 \
  13. /path/to/examples.jar \
  14. 1000
  15. # Run on a Spark standalone cluster in cluster deploy mode with supervise
  16. ./bin/spark-submit \
  17. --class org.apache.spark.examples.SparkPi \
  18. --master spark://207.184.161.138:7077 \
  19. --deploy-mo
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/888083
推荐阅读
相关标签
  

闽ICP备14008679号