摘要: RDD 编程 一、词频统计: 1. 读文本文件生成 RDD lines >>> lines = sc.textFile("file:///usr/local/spark/mycode/rdd/word.txt") >>> lines.foreach(print) 2. 将一行一行的文本分割成单词 w 阅读全文
posted @ 2021-04-18 21:53 1After909 阅读(171) 评论(0) 推荐(0) 编辑