1. 程式人生 > >Hadoop 啟動resource manager 失敗的解決辦法

Hadoop 啟動resource manager 失敗的解決辦法

節點resource manager 無法啟動
在/var/log/hadoop-yarn/yarn/yarn-yarn-resourcemanager-bbb.log


發現了這樣的錯誤
2016-11-14 16:30:43,101 FATAL resourcemanager.ResourceManager (ResourceManager.java:main(1241)) - Error starting ResourceManager
java.lang.IllegalArgumentException: Illegal capacity of -1.0 for node-label=default in queue=root, valid capacity should in range of [0, 100].



修改/etc/hadoop/conf.empty/capacity-scheduler.xml


    <property>
      <name>yarn.scheduler.capacity.root.accessible-node-labels.default.capacity</name>
      <value>1</value>
    </property>
    
    <property>
      <name>yarn.scheduler.capacity.root.accessible-node-labels.default.maximum-capacity</name>
      <value>1</value>
    </property>


然後重啟resource manager就ok了