1.在hadoop的安装目录etc/hadoop/下修改配置文件:yarn-site.xml
<configuration>
<!-- Site specific YARN configuration properties -->
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>
2.在hadoop的安装目录etc/hadoop/下修改配置文件:mapred-site.xml
复制mapred-site.xml.template 改名为 mapred-site.xml
vi mapred-site.xml
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
3.启动RM进程以及NM进程:./start-yarn.sh
[root@master sbin]# ./start-yarn.sh
4.验证进程
[root@master sbin]# jps