ambari 第4步注册失败

hcxy 发布于 2016/10/14 16:47
阅读 1K+
收藏 0

1台服务器  ambari离线单节点搭建HDP 之前在5台pc机上搭过都没有出现这种问题

hosts配置

127.0.0.1   localhost
192.168.20.210  hdp

openssl版本 openssl-1.0.1e-48.el6_8.3.x86_64

python版本 Python 2.6.6

系统是英文版的

发现一个奇怪的地方:

有问题的服务器

[root@hdp ambari-agent]# lsof -i:8440
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
java    98425 root  798u  IPv6 2058074      0t0  TCP *:8440 (LISTEN)
java    98425 root  829u  IPv6 2058085      0t0  TCP hdp:8440->hdp:39067 (CLOSE_WAIT)
java    98425 root  863u  IPv6 2059278      0t0  TCP hdp:8440->hdp:39099 (CLOSE_WAIT)
java    98425 root  870u  IPv6 2063371      0t0  TCP hdp:8440->hdp:39312 (ESTABLISHED)
python2 99968 root    7r  IPv4 2076095      0t0  TCP hdp:39312->hdp:8440 (ESTABLISHED)

正常的集群:

[root@centos216 yum.repos.d]# lsof -i:8440
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    2150 root  741u  IPv6  13514      0t0  TCP *:8440 (LISTEN)

感觉和这个有关系但是不知道怎么解决

agent日志

INFO 2016-10-14 15:13:37,609 main.py:71 - loglevel=logging.INFO
INFO 2016-10-14 15:13:37,610 main.py:71 - loglevel=logging.INFO
ERROR 2016-10-14 15:13:42,634 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in <module>
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 242, in main
    stop_agent()
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 189, in stop_agent
    sys.exit(1)
SystemExit: 1
INFO 2016-10-14 15:13:42,636 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-10-14 15:13:43,227 main.py:71 - loglevel=logging.INFO
INFO 2016-10-14 15:13:43,228 main.py:71 - loglevel=logging.INFO
INFO 2016-10-14 15:13:43,230 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-10-14 15:13:43,232 DataCleaner.py:120 - Data cleanup started
INFO 2016-10-14 15:13:43,233 DataCleaner.py:122 - Data cleanup finished
INFO 2016-10-14 15:13:43,391 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-10-14 15:13:43,395 main.py:283 - Connecting to Ambari server at https://hdp:8440 (192.168.20.210)
INFO 2016-10-14 15:13:43,395 NetUtil.py:60 - Connecting to https://hdp:8440/ca

server日志:

14 Oct 2016 15:15:50,981 ERROR [qtp-ambari-client-182] BaseManagementHandler:57 - Caught a system exception while attempting to create a resource: An internal 
system exception occurred: Host not found, hostname=
org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Host not found, hostname=
at org.apache.ambari.server.controller.internal.AbstractResourceProvider.createResources(AbstractResourceProvider.java:282

加载中
0
泽泽

system exception occurred: Host not found, hostname=

你的Hosts文件配置好了吗?

返回顶部
顶部