centos 5 中的 Ambari 2.0 设置
Posted
技术标签:
【中文标题】centos 5 中的 Ambari 2.0 设置【英文标题】:Ambari 2.0 setup in centos 5 【发布时间】:2015-09-01 06:31:20 【问题描述】:我打算用一个节点在 CentOS 5 中设置 Ambari 2.0。我成功地在一个盒子中设置了 Ambari 服务器,并尝试通过 Ambari admin Server UI 在另一个盒子中自动安装 Ambari 代理。我的其他服务器有一个无密码 SSH,它工作正常,但是在尝试向其他节点注册时遇到以下错误。谁能帮忙解决一下?
IOError: [Errno 2] No such file or directory: '/var/lib/ambari-agent/data/version'
INFO 2015-09-01 01:28:55,105 HostCheckReportFileHandler.py:91 - Host check report at /var/lib/ambari-agent/data/hostcheck.result
INFO 2015-09-01 01:28:55,106 HostCheckReportFileHandler.py:141 - Removing old host check file at /var/lib/ambari-agent/data/hostcheck.result
INFO 2015-09-01 01:28:55,106 HostCheckReportFileHandler.py:146 - Creating host check file at /var/lib/ambari-agent/data/hostcheck.result
ERROR 2015-09-01 01:28:55,107 Controller.py:170 - Unable to connect to: https://172.16.2.132:8441/agent/v1/register/iaccm002.zymesolutions.local
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 120, in registerWithServer
data = json.dumps(self.register.build())
File "/usr/lib/python2.6/site-packages/ambari_agent/Register.py", line 45, in build
version = self.read_agent_version()
File "/usr/lib/python2.6/site-packages/ambari_agent/Register.py", line 63, in read_agent_version
f = open(ver_file, "r")
【问题讨论】:
【参考方案1】:看起来您在该主机上安装了无效的 ambari-agent,由于错误:No such file or directory: '/var/lib/ambari-agent/data/version'
我将卸载并重新安装它:
sudo yum erase ambari-agent
sudo yum install ambari-agent
然后再次尝试安装。
【讨论】:
好吧,我也试过了,但没有帮助。我正在尝试使用 Ambari、CentOS 7.x 设置 HDP 2.3。以上是关于centos 5 中的 Ambari 2.0 设置的主要内容,如果未能解决你的问题,请参考以下文章