摘要: scala> val textFile = sc.textFile("file:///home/hadoop/mooc_data/wc.txt")scala> val counts = textFile.flatMap(line => line.split(" ")).map(word => (wo 阅读全文
posted @ 2017-11-09 15:42 wangmeihong 阅读(1413) 评论(0) 推荐(0) 编辑