标签:创建文件 基本操作 python count tar mkdir start star inf
通过hadoop上的hive完成WordCount
启动hadoop
start-all.sh

Hdfs上创建文件夹
./hdfs dfs -mkdir song
./hdfs dfs -ls


上传文件至hdfs

启动Hive

创建原始文档表

导入文件内容到表docs并查看


用HQL进行词频统计,结果放在表word_count里

查看统计结果

标签:创建文件 基本操作 python count tar mkdir start star inf
原文地址:https://www.cnblogs.com/cktcom/p/9048994.html