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


   
      yarn.scheduler.capacity.root.accessible-node-labels.default.capacity
      1
   

    
   
      yarn.scheduler.capacity.root.accessible-node-labels.default.maximum-capacity
      1
   



然后重启resource manager就ok了

你可能感兴趣的:(Hadoop)