一,配置mapred-site.xml
进入以入目录
[root@hadoop01 hadoop]# cd /home/software/hadoop-2.7.1/etc/hadoop
复制mapred-site.xml示例文件
[root@hadoop01 hadoop]# cp mapred-site.xml.template mapred-site.xml
修改mapred-site.xml,增加如下标红内容:
mapreduce.framework.name
yarn
二,配置yarn-site.xml
进入以入目录
[root@hadoop01 hadoop]# cd /home/software/hadoop-2.7.1/etc/hadoop
修改yarn-site.xml
[root@hadoop01 hadoop]# vim yarn-site.xml
增加以下标红内容:
yarn.resourcemanager.hostname
hadoop01
yarn.nodemanager.aux-services
mapreduce_shuffle
补充:
在实际工作中,namenode节点和ResourceManager节点不在同一台服务器上。此外,
标签:xml,mapred,hadoop01,配置,site,yarn,hadoop,MapReduce From: https://blog.51cto.com/u_15130867/5987029