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