将工程打成jar
放入到linux中
切换到[root@node4 Desktop]# cd /usr/local/development/spark-2.0-hadoop2.6/bin/
输入命令
[root@node4 bin]# ./spark-submit --class spark_1.mainA /home/node4/Desktop/scalaSparkWorkCountTest.jar 100
打印出结果
将工程打成jar
放入到linux中
切换到[root@node4 Desktop]# cd /usr/local/development/spark-2.0-hadoop2.6/bin/
输入命令
[root@node4 bin]# ./spark-submit --class spark_1.mainA /home/node4/Desktop/scalaSparkWorkCountTest.jar 100
打印出结果