页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。
评论: 修改 - 格式

目录

FAQ

Maven

 

YARN

ResourceManager

error: <class 'xmlrpclib.Fault'>, <Fault 92: 'CANT_REREAD: The directory named as part of the path /var/run/cloudera-scm-agent/process/1543-yarn-RESOURCEMANAGER/logs/stdout.log does not exist.'>: file: /usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/supervisorctl.py line: 947

作者 : 那伊抹微笑

时间 : 2016-10-10 16:59:21

场景 : ResourceManager 挂掉,原因未知,使用 Cloudera Manager 重启该角色失败,该角色日志中有一段错误 

代码块
languagebash
themeEclipse
java.lang.IllegalArgumentException: count cannot be negative: -2147483648
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
        at com.google.common.collect.Multisets.checkNonnegative(Multisets.java:943)
        at com.google.common.collect.AbstractMapBasedMultiset.setCount(AbstractMapBasedMultiset.java:277)
        at com.google.common.collect.HashMultiset.setCount(HashMultiset.java:34)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerApplicationAttempt.addSchedulingOpportunity(SchedulerApplicationAttempt.java:510)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSAppAttempt.assignContainer(FSAppAttempt.java:652)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSAppAttempt.assignContainer(FSAppAttempt.java:865)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSLeafQueue.assignContainer(FSLeafQueue.java:328)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSParentQueue.assignContainer(FSParentQueue.java:241)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.attemptScheduling(FairScheduler.java:1126)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.continuousSchedulingAttempt(FairScheduler.java:1048)
        at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler$ContinuousSchedulingThread.run(FairScheduler.java:295)

然而并没有什么卵用!~

继续使用 Cloudera Manager 重启该角色,该日志不再输出(说明还没到启动这个角色之前就已经失败了)。

那么就得查看 /var/log//cloudera-scm-agent/cloudera-scm-agent.out 这里面的日志了,果不其然这里报错了 : 

代码块
languagebash
themeEclipse
error: <class 'xmlrpclib.Fault'>, <Fault 92: 'CANT_REREAD: The directory named as part of the path /var/run/cloudera-scm-agent/process/1543-yarn-RESOURCEMANAGER/logs/stdout.log does not exist.'>: file: /usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/supervisorctl.py line: 947

卧槽,直接被干蒙了。我没有动过这台服务器上的东西呀,怎么会这样?先不管理,继续重启 、、、然后特么的还是这个错误。

既然如果那么我手动创建这个目录吧!

代码块
languagebash
themeEclipse
mkdir -p /var/run/cloudera-scm-agent/process/1543-yarn-RESOURCEMANAGER/logs/
chmod 777 /var/run/cloudera-scm-agent/process/1543-yarn-RESOURCEMANAGER/logs/

然后接着继续重启该 ResourceManager 角色了,这次报错还是跟上面那个错一样,只是目录不一样了,那么我接着创建目录,如此这般反复几次之后,特么竟然正常启动了,一切正常!~

解决 : 创建需要的目录,并且给予权限,反复几次之后就可以了,查看服务一切正常。