摘要: 1.读文本文件生成RDD lines将一行一行的文本分割成单词 words flatmap() lines = sc.textFile("file:///home/hadoop/sparkproject/xiaoshuo.txt")words = lines.flatMap(lambda word 阅读全文
posted @ 2021-04-12 18:55 徐俊钊 阅读(93) 评论(0) 推荐(0)