大數據 - 第十一課 : 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
相關文章
相關標籤/搜索