分享

安装CDH 5.10.0报错

醉半城 发表于 2017-4-18 09:54:30 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 11 37163
2017-04-18 09:40:29,308 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive: Unable to retrieve non-local non-loopback IP address. Seeing address: cm/127.0.0.1. 2017-04-18 09:40:29,308 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive failed. Bootup = false2017-04-18 09:40:29,308 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive was not able to access CM identity to validate it.2017-04-18 09:40:29,308 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive is deferring the validation to the next run in 15 seconds.2017-04-18 09:40:29,308 WARN ScmActive-0:com.cloudera.enterprise.AbstractWrappedEntityManager: Rolling back transaction that wasn't marked for rollback-only.java.lang.Exception: Non-thrown exception for stack trace.        at com.cloudera.enterprise.AbstractWrappedEntityManager.close(AbstractWrappedEntityManager.java:161)        at com.cloudera.cmf.persist.CmfEntityManager.close(CmfEntityManager.java:356)        at com.cloudera.server.cmf.components.ScmActive.markScmActive(ScmActive.java:224)        at com.cloudera.server.cmf.components.ScmActive.run(ScmActive.java:87)        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)        at java.lang.Thread.run(Thread.java:745)Unable to retrieve non-local non-loopback IP address. Seeing address: cm/127.0.0.1. 这个错google都搜不到解决方案,求指教

已有(11)人评论

跳转到指定楼层
醉半城 发表于 2017-4-18 10:30:26
/etc/hosts 配置如下

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1       cm
回复

使用道具 举报

einhep 发表于 2017-4-18 13:42:46
醉半城 发表于 2017-4-18 10:30
/etc/hosts 配置如下

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain ...

把这个注释掉
#127.0.0.1       cm


回复

使用道具 举报

醉半城 发表于 2017-4-18 15:56:28
einhep 发表于 2017-4-18 13:42
把这个注释掉
#127.0.0.1       cm

嗯,但是现在一直卡在 “分发parcels到各个节点 ”,一直处在100%。
回复

使用道具 举报

nextuser 发表于 2017-4-18 17:04:05
醉半城 发表于 2017-4-18 15:56
嗯,但是现在一直卡在 “分发parcels到各个节点 ”,一直处在100%。

原因有两个:
1.可能是网络的原因
2.产生错误了,这个是需要到/var/log去看看
回复

使用道具 举报

醉半城 发表于 2017-4-18 17:11:23
nextuser 发表于 2017-4-18 17:04
原因有两个:
1.可能是网络的原因
2.产生错误了,这个是需要到/var/log去看看

安装在本机,所以网络基本可以排除。看log,只有cloudera-scm-server和cloudera-scm-agent,但是里面没有分发的日志。
回复

使用道具 举报

liuzhixin137 发表于 2017-4-19 09:22:33
这种问题,只能是几个方面的原因,防火墙,ip    ssh是不是互通,如果要连mysql,权限,jdbc包是不是都有。

还可以看日志,在server和agent目录下都可以看到,是不是什么命令不识别,要安装什么perl这种。。。
回复

使用道具 举报

醉半城 发表于 2017-4-19 17:25:12
最终解决了。
Unable to retrieve non-local non-loopback IP address. Seeing address: cm/127.0.0.1
这个问题修改host,把这个注释掉 #127.0.0.1       cm    感谢einhep的指点。
分发parcels到各个节点 ”,一直处在0%  这个问题,查看agent日志会发现:
[19/Apr/2017 14:23:20 +0000] 25170 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.10.0-py2.7.egg/cmf/agent.py", line 710, in __issue_heartbeat
    self._init_after_first_heartbeat_response(resp_data)
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.10.0-py2.7.egg/cmf/agent.py", line 947, in _init_after_first_heartbeat_response
    self.client_configs.load()
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.10.0-py2.7.egg/cmf/client_configs.py", line 682, in load
    new_deployed.update(self._lookup_alternatives(fname))
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.10.0-py2.7.egg/cmf/client_configs.py", line 432, in _lookup_alternatives
    return self._parse_alternatives(alt_name, out)
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.10.0-py2.7.egg/cmf/client_configs.py", line 444, in _parse_alternatives
    path, _, _, priority_str = line.rstrip().split(" ")
ValueError: too many values to unpack

解决方案是修改 /usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.10.0-py2.7.egg/cmf/client_configs.py 这个脚本的第444行。

    for line in output.splitlines():
      if line.startswith("/"):
        if len(line.rstrip().split(" "))<=4:
          path, _, _, priority_str = line.rstrip().split(" ")

          # Ignore the alternative if it's not managed by CM.
          if CM_MAGIC_PREFIX not in os.path.basename(path):
            continue

          try:
            priority = int(priority_str)
          except ValueError:
            THROTTLED_LOG.info("Failed to parse %s: %s", name, line)

          key = ClientConfigKey(name, path)
          value = ClientConfigValue(priority, self._read_generation(path))
          ret[key] = value

        else:
          pass
    return ret
添加 if len(line.rstrip().split(" "))<=4:  和  else:  pass;
再次感谢各位的帮助,谢谢。
回复

使用道具 举报

Johnny_2017 发表于 2017-10-17 17:35:46
装在本机一定不要在127.0.0.1和::1后加主机名

127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
::1        localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.0.XXX 主机名 #用内网ip单独配置一行
血的教训,活活耽误两天时间
回复

使用道具 举报

Ciang 发表于 2018-1-16 13:59:17
醉半城 发表于 2017-4-19 17:25
最终解决了。
Unable to retrieve non-local non-loopback IP address. Seeing address: cm/127.0.0.1
这 ...

你好 我遇到了 和你一样的错误,但是修改后,agent启动失败了 这又是什么原因呢 ,卡这个问题一天了

回复

使用道具 举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条