namenode节点上配置Map/Reduce计算引擎跑在yarn这个资源调度平台上;

mapreduce.framework.name
yarn

namenode配置yarn-site.xml文件

指定resourcemanager在master节点上


yarn.resourcemanager.hostname
master

配置计算mapreduce相关的


yarn.nodemanager.aux-services
mapreduce_shuffle


yarn.nodemanager.aux-services.mapreduce_shuffle.class
org.apache.hadoop.mapred.ShuffleHandler

执行示例
hadoop jar /usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar wordcount 10803060234.txt /output