ambari-agent无法访问ambari-server

时间:2018-05-28 16:28:29

标签: ambari

当我在webUI上安装带有httpd本地存储库和Comfire主机的ambari-server时,我收到了一些错误,如下所示:

INFO 2018-05-27 15:39:16,776 NetUtil.py:70 - Connecting to https://master:8440/ca
ERROR 2018-05-27 15:39:16,787 NetUtil.py:96 - [Errno 8] _ssl.c:493: EOF occurred in violation of protocol
ERROR 2018-05-27 15:39:16,788 NetUtil.py:97 - SSLError: Failed to connect.Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2018-05-27 15:39:16,789 NetUtil.py:124 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-27 15:39:26,793 NetUtil.py:70 - Connecting to https://master:8440/ca
ERROR 2018-05-27 15:39:26,799 NetUtil.py:96 - [Errno 8] _ssl.c:493: EOF occurred in violation of protocol
ERROR 2018-05-27 15:39:26,799 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2018-05-27 15:39:26,801 NetUtil.py:124 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...

我的环境信息如下:

  • CentOS Linux版本7.5.1804(核心)
  • Python2.7.5
  • Java1.8.0_171
  • OpenSSL1.0.2k
  • Ambari2.6.2.0
  • HDP-2.6.5.0

在我的其他amabri-agent节点上,我可以在8440端口上访问master,如下所示:

[root@slave2 ~]# telnet master 8440
Trying 192.168.17.128...
Connected to master.
Escape character is '^]'.

请给我一些帮助,非常感谢!

2 个答案:

答案 0 :(得分:0)

请在设置中检查JAVA_HOME和openSSL版本

答案 1 :(得分:0)

我也遇到同样的问题。

这对我有用。

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

将此行添加到[security]下方

force_https_protocol=PROTOCOL_TLSv1_2

/etc/python/cert-verification.cfg

[https]

verify=disable 

(从默认更改为禁用)