./spark-submit –master <master地址加端口号> jar包地址
unzip sparkpi.jar
rm -rf *.class
bin./spark-submit –master spark://master:7077 –class SparkPi /root/IdeaProjects/sparkpi/out/artifacts/sparkpi_jar/sparkpi.jar
./spark-submit –master spark://192.168.80.128:7077 –class SparkPi /root/IdeaProjects/SparkPi/out/artifacts/sparkpi/sparkpi.jar
-Dspark.master=local(idea运行设置本地模式)
http://bit1129.iteye.com/blog/2174751 nc lk 9999
原创文章,作者:kepupublish,如若转载,请注明出处:https://blog.ytso.com/tech/opensource/193265.html