ambari安装节点Registration with the server failed

hadoop | 2019-09-23 16:14:41

使用ambari确认安装节点时报错:

点击查看具体错误:

Command start time 2019-09-23 15:49:20
("WARNING 2019-09-23 15:49:38,870 NetUtil.py:101 - Failed to connect to https://slave1:8440/ca due to [Errno 111] \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5  
WARNING 2019-09-23 15:49:38,870 NetUtil.py:124 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
INFO 2019-09-23 15:49:38,871 HeartbeatHandlers.py:116 - Stop event received
INFO 2019-09-23 15:49:38,871 NetUtil.py:130 - Stop event received
INFO 2019-09-23 15:49:38,871 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2019-09-23 15:49:38,871 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2019-09-23 15:49:41,127 main.py:285 - Agent died gracefully, exiting.
INFO 2019-09-23 15:49:41,129 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2019-09-23 15:49:41,713 main.py:147 - loglevel=logging.INFO
INFO 2019-09-23 15:49:41,713 main.py:147 - loglevel=logging.INFO
INFO 2019-09-23 15:49:41,713 main.py:147 - loglevel=logging.INFO
INFO 2019-09-23 15:49:41,715 DataCleaner.py:39 - Data cleanup thread started
INFO 2019-09-23 15:49:41,717 DataCleaner.py:120 - Data cleanup started
INFO 2019-09-23 15:49:41,718 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'slave122' using socket.getfqdn().
INFO 2019-09-23 15:49:41,721 DataCleaner.py:122 - Data cleanup finished
INFO 2019-09-23 15:49:41,764 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2019-09-23 15:49:41,767 main.py:439 - Connecting to Ambari server at https://slave1:8440 (10.10.22.203)
INFO 2019-09-23 15:49:41,767 NetUtil.py:70 - Connecting to https://slave1:8440/ca
WARNING 2019-09-23 15:49:41,769 NetUtil.py:101 - Failed to connect to https://slave1:8440/ca due to [Errno 111] \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5  
WARNING 2019-09-23 15:49:41,769 NetUtil.py:124 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
", None)
("WARNING 2019-09-23 15:49:38,870 NetUtil.py:101 - Failed to connect to https://slave1:8440/ca due to [Errno 111] \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5  
WARNING 2019-09-23 15:49:38,870 NetUtil.py:124 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
INFO 2019-09-23 15:49:38,871 HeartbeatHandlers.py:116 - Stop event received
INFO 2019-09-23 15:49:38,871 NetUtil.py:130 - Stop event received
INFO 2019-09-23 15:49:38,871 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2019-09-23 15:49:38,871 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2019-09-23 15:49:41,127 main.py:285 - Agent died gracefully, exiting.
INFO 2019-09-23 15:49:41,129 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2019-09-23 15:49:41,713 main.py:147 - loglevel=logging.INFO
INFO 2019-09-23 15:49:41,713 main.py:147 - loglevel=logging.INFO
INFO 2019-09-23 15:49:41,713 main.py:147 - loglevel=logging.INFO
INFO 2019-09-23 15:49:41,715 DataCleaner.py:39 - Data cleanup thread started
INFO 2019-09-23 15:49:41,717 DataCleaner.py:120 - Data cleanup started
INFO 2019-09-23 15:49:41,718 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'slave122' using socket.getfqdn().
INFO 2019-09-23 15:49:41,721 DataCleaner.py:122 - Data cleanup finished
INFO 2019-09-23 15:49:41,764 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2019-09-23 15:49:41,767 main.py:439 - Connecting to Ambari server at https://slave1:8440 (10.10.22.203)
INFO 2019-09-23 15:49:41,767 NetUtil.py:70 - Connecting to https://slave1:8440/ca
WARNING 2019-09-23 15:49:41,769 NetUtil.py:101 - Failed to connect to https://slave1:8440/ca due to [Errno 111] \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5  
WARNING 2019-09-23 15:49:41,769 NetUtil.py:124 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
", None)

Registration with the server failed

可以看到 Connecting to Ambari server at https://slave1:8440 (10.10.22.203)

slave1是以前的hostname

解决方法:

修改ambari-agent hostname配置

vim /etc/ambari-agent/conf/ambari-agent.ini

把server hostname修改正确,改成ambari server安装的主机名,一般是master

然后重启ambari-agent

ambari-agent restart

 

然后点击back重新register就可以了

 

登录后即可回复 登录 | 注册
    
关注编程学问公众号