大数据 - 第十一课 : idea实现wordcount程序

(关键概念)RDD操作,惰性求值/ 从本地文件系统中加载数据创建RDD 读取文件:val lines = sc.textFile(“file:///home/cmj/student00/test/wordcount.txt”) 分词:val aftermap = lines.map(x=>x.split(" ")) res1: Array[String] = Array(hello world y
相关文章
相关标签/搜索