Hadoop 啟動resource manager 失敗的解決辦法
阿新 • • 發佈:2018-12-26
節點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了
在/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了