CentOS6.5基於Hadoop使用者的Yarn偽分散式部署(a Single Node Cluster)

13545163656發表於2018-05-20
yran on a single node cluster
官網參考:



1.修改mapred-site.xml檔案,沒有建立
[hadoop@hadoop001 hadoop]$ pwd
/opt/software/hadoop-2.8.1/etc/hadoop
[hadoop@hadoop001 hadoop]$ cp mapred-site.xml.template mapred-site.xml

[hadoop@hadoop001 hadoop]$ vim mapred-site.xml   -- 新增<property>

  1. <configuration>
  2.         <property>
  3.            <name>mapreduce.framework.name</name>
  4.            <value>yarn</value>
  5.         </property>
  6. </configuration>


2.修改etc/hadoop/yarn-site.xml


  1. <configuration>
  2.         <property>
  3.           <name>yarn.nodemanager.aux-services</name>
  4.           <value>mapreduce_shuffle</value>
  5.         </property>
  6. </configuration>

3.Start Stop ResourceManager daemon and NodeManager daemon

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


4.初次啟動專案yarn啟動失敗,檢視啟動該日誌
[hadoop@hadoop001 sbin]$ jps
18704 Jps
13767 SecondaryNameNode
13595 DataNode
13454 NameNode
[hadoop@hadoop001 sbin]$ cat /opt/software/hadoop-2.8.1/logs/yarn-hadoop-resourcemanager-hadoop001.out
[Fatal Error] mapred-site.xml:24:1: The end-tag for element type "property" must end with a '>' delimiter.

檢查發現發現mapred-site.xml裡>缺少 > 結束箭頭 


5.再次啟動yarn 啟動成功
[hadoop@hadoop001 sbin]$ ./start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /opt/software/hadoop-2.8.1/logs/yarn-hadoop-resourcemanager-hadoop001.out
192.168.0.129: starting nodemanager, logging to /opt/software/hadoop-2.8.1/logs/yarn-hadoop-nodemanager-hadoop001.out
[hadoop@hadoop001 sbin]$ jps
18883 NodeManager        
18918 Jps
13767 SecondaryNameNode
18776 ResourceManager
13595 DataNode
13454 NameNode

6.啟動控制檯啟動埠8088

  • ResourceManager - 8088/   




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31441024/viewspace-2154780/,如需轉載,請註明出處,否則將追究法律責任。

相關文章