ambari 2.0安装程序

e5nqia27  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(370)

我计划在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")
qnyhuwrf

qnyhuwrf1#

由于以下错误,您在该主机上安装的ambari代理无效: No such file or directory: '/var/lib/ambari-agent/data/version' 我将卸载并重新安装它:

sudo yum erase ambari-agent
sudo yum install ambari-agent

然后再次尝试安装。

相关问题