1. Spark提交任务
./spark-submit –class “com.prime.dsc.mention.main.WordCountForSpark” –master spark://DEV-HADOOP-01:7077 /data/server/spark-1.5.0-bin-hadoop2.6/sparkJar/PRIME_DSC_Mention-1.0.0-SNAPSHOT.jar
2. Spark本地运行
SparkConf sparkConf = new SparkConf().setAppName(“wordCountForSpark”).setMaster(“local”);
3. Myeclipse打Jar包
1) Maven clean
2) Maven install
3) 在target目录下拷贝.jar文件即是需要的Jar包
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/opensource/195024.html