我计划在CentOS 5中使用一个节点设置Ambari 2.0。我成功地在一个盒子中设置了Ambari服务器,并尝试通过Ambari管理服务器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")
答案 0 :(得分:0)
由于错误,您似乎在该主机上安装了无效的ambari-agent:No such file or directory: '/var/lib/ambari-agent/data/version'
我将卸载并重新安装它:
sudo yum erase ambari-agent
sudo yum install ambari-agent
然后再次尝试安装。