计算圆周率:
/opt/software/spark/bin/spark-submit
--class org.apache.spark.examples.SparkPi
--master spark://node01:7077
--executor-memory 1G
--total-executor-cores 2 /opt/software/spark/examples/jars/spark-examples_2.11-2.0.2.jar 10
需要先启动spark,在spark的sbin目录下
./start-all-sh
来源:CSDN
作者:今日份
链接:https://blog.csdn.net/weixin_44694973/article/details/96819899