若泽大数据,Hadoop全网最详细的伪分布式部署(MapReduce+Yarn)
修改mapred-site.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17[hadoop@hadoop000 ~]# cd /opt/software/hadoop/etc/hadoop
[hadoop@hadoop000 hadoop]# cp mapred-site.xml.template mapred-site.xml
[hadoop@hadoop000 hadoop]# vi mapred-site.xml
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>修改yarn-site.xml
1
2
3
4
5
6
7
8
9
10
11
12
13[hadoop@hadoop000 hadoop]# vi yarn-site.xml
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>启动
1
2
3[hadoop@hadoop000 hadoop]# cd ../../
[hadoop@hadoop000 hadoop]# sbin/start-yarn.sh关闭
1
[hadoop@hadoop000 hadoop]# sbin/stop-yarn.sh