Spark local/standalone/yarn/远程调试-运行WordCount_spark-submit使用local运行wordcount-CSDN博客

网站介绍:文章浏览阅读1.5k次。local直接启动spark-shell./spark-shell --master local[*]编写scala代码sc.textFile("/input/file01.txt")res0.cache()res0.countval wd=res0.flatMap(_.split(" ")).map((_, 1)).reduceByKey(_+_)wd.collect.foreach(pr_spark-submit使用local运行wordcount