YARN资源调度框架环境部署

1、步骤

https://archive.cloudera.com/p/cdh5/cdh.hadoop-2.6.0-cdh5.15.1

(1)进入文件夹

[hadoop@hadoop000 hadoop]$ pwd
/home/hadoop/app/hadoop-2.6.0-cdh5.15.1/etc/hadoop

(2)复制文件,更名为mapred-site.xml

[hadoop@hadoop000 hadoop]$ cp mapred-site.xml.template mapred-site.xml

(3)配置mapred-site.xml

[hadoop@hadoop000 hadoop]$ vi mapred-site.xml
<property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
</property>

(4)配置yarn-site.xml

[hadoop@hadoop000 hadoop]$ vi yarn-site.xml
<property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
</property>

(5)启动

[hadoop@hadoop000 sbin]$ ./start-yarn.sh

(6)此时启动中的状态

[hadoop@hadoop000 sbin]$ jps
2976 DataNode
3552 NodeManager
3173 SecondaryNameNode
3429 ResourceManager
3879 Jps
2827 NameNode

(7)访问YARN浏览器界面

http://192.168.131.101:8088/

 

posted @ 2021-07-19 14:50  酱汁怪兽  阅读(47)  评论(0编辑  收藏  举报