gpt4 book ai didi

python - centos 5 中的 Ambari 2.0 安装

转载 作者:可可西里 更新时间:2023-11-01 14:58:06 24 4
gpt4 key购买 nike

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

最佳答案

看起来您在该主机上安装的 ambari-agent 无效,原因是错误:No such file or directory: '/var/lib/ambari-agent/data/version'我会卸载并重新安装它:

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

然后再次尝试安装。

关于python - centos 5 中的 Ambari 2.0 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32324970/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com