摘要: 一、词频统计 A. 分步骤实现 1.准备文件 1.下载小说或长篇新闻稿 2.上传到hdfs上 hdfs dfs -cat ./ysy.txt 2.读文件创建RDD lines=sc.textFile("hdfs://localhost:9000/user/hadoop/ysy.txt") lines 阅读全文
posted @ 2022-04-05 20:11 箫碧栽植 阅读(93) 评论(0) 推荐(0)