网站介绍:文章浏览阅读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
- 链接地址:https://blog.csdn.net/Nougats/article/details/73033144
- 链接标题:Spark local/standalone/yarn/远程调试-运行WordCount_spark-submit使用local运行wordcount-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5393
- 网站标签:spark-submit使用local运行wordcount