在使用ambari 搭建hdp的时在,在主机确认环节,主机无法注册成功。
ambari-agent端报错日志如下
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in <module>
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 297, in main
ExitHelper.execute_cleanup()
TypeError: unbound method execute_cleanup() must be called with ExitHelper instance as first argument (got nothing instead)
', None)
最终确定原因为:hostname设置不正确。 /etc/sysconfig/network。 设置完了要重启系统才生效。
hostname 中设置的网络名称在hosts 或dns中没有映射到对应IP.
修改后重启系统,注册成功。
纠结很久,记录一下。