打包 :右击、export、Java 、jar File
把TestSpark.jar包上传到spark集群服务器的 spark_home下的myApp下:提交spark任务:
- cd /usr/local/spark/spark-2.1.1-bin-hadoop2.7
- bin/spark-submit --class "ClusterWordCount" --master local[4] myApp/TestSpark.jar
打包 :右击、export、Java 、jar File
把TestSpark.jar包上传到spark集群服务器的 spark_home下的myApp下:提交spark任务:
- cd /usr/local/spark/spark-2.1.1-bin-hadoop2.7
- bin/spark-submit --class "ClusterWordCount" --master local[4] myApp/TestSpark.jar