创建在hadoop-3.1.3文件下面创建一个wcinput文件夹
[root@hadoop102 hadoop-3.1.3]# mkdir wcinput
在wcinput文件下创建一个word.txt文件
vim word.txt
输入文本
hadoop yarn hadoop mapreduce
回到Hadoop目录/opt/module/hadoop-3.1.3
hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.3.jar wordcount wcinput wcoutput
查看结果
cat wcoutput/part-r-00000



