文章目录

1.问题

Ambari-Agent心跳丢失:
在这里插入图片描述
后台日志:
tail -f /var/log/ambari-agent/ambari-agent.log

INFO 2021-07-19 16:57:37,124 main.py:481 - Connecting to Ambari server at https://manager.insight.com:8440 (10.180.210.137)
INFO 2021-07-19 16:57:37,124 NetUtil.py:61 - Connecting to https://manager.hdp.com:8440/ca
WARNING 2021-07-19 16:57:37,125 NetUtil.py:92 - Failed to connect to https://manager.hdp.com:8440/ca due to [Errno 111] Connection refused  
WARNING 2021-07-19 16:57:37,125 NetUtil.py:115 - Server at https://manager.hdp.com:8440 is not reachable, sleeping for 10 seconds...

在这里插入图片描述

2.解决

修改ambari-agent的配置文件,指定hostname为manager的hostname。
查看ambari-agent配置文件命令:grep -A5 '\[server\]' /etc/ambari-agent/conf/ambari-agent.ini
在这里插入图片描述
重启ambari-agent:ambari-agent restart

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐