立即学习:https://edu.csdn.net/course/play/11032/239278?utm_source=blogtoedu
测试运行yarn hadoop/share/hadoop目录下有个 MapReduce2目录里的包
在app/hadoop 目录下运行
bin/hadoop jar share/hadoop/mapreduce2/hadoop-mapreduce-examples-2.6.0-cdh5.10.0.jar wordcount /test/wc.txt /out
查看运行结果
bin/hdfs dfs -cat /out/*