摘要: 一、词频统计 A. 分步骤实现 准备文件 下载小说或长篇新闻稿 上传到hdfs上 读文件创建RDD >>> lines = sc.textFile("hdfs://localhost:9000/user/hadoop/my.txt") >>> lines 分词 words = lines.flatM 阅读全文
posted @ 2022-04-07 18:27 stu(dying) 阅读(66) 评论(0) 推荐(0) 编辑