2016-11-23 55 views
0

我正在嘗試使用Apache Ambari在EC2上配置Hadoop集羣。Ambari註冊階段在EC2上的SSL失敗

在登記階段我得到這個錯誤:

Command start time 2016-11-23 20:25:12 
('Traceback (most recent call last): 
    File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 312, in <module> 
    main(heartbeat_stop_callback) 
    File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 248, in main 
    stop_agent() 
    File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 198, in stop_agent 
    sys.exit(1) 
SystemExit: 1 
INFO 2016-11-23 20:25:18,716 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-11-23 20:25:18,907 main.py:74 - loglevel=logging.INFO 
INFO 2016-11-23 20:25:18,907 DataCleaner.py:39 - Data cleanup thread started 
INFO 2016-11-23 20:25:18,908 DataCleaner.py:120 - Data cleanup started 
INFO 2016-11-23 20:25:18,909 DataCleaner.py:122 - Data cleanup finished 
INFO 2016-11-23 20:25:18,930 PingPortListener.py:50 - Ping port listener started on port: 8670 
INFO 2016-11-23 20:25:18,931 main.py:289 - Connecting to Ambari server at https://IPADDRESS.us-west-2.compute.internal:8440 (172.31.37.172) 
INFO 2016-11-23 20:25:18,931 NetUtil.py:59 - Connecting to https://IPADDRESS.us-west-2.compute.internal:8440/ca 
ERROR 2016-11-23 20:25:18,983 NetUtil.py:77 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) 
ERROR 2016-11-23 20:25:18,983 NetUtil.py:78 - SSLError: Failed to connect. Please check openssl library versions. 
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. 
WARNING 2016-11-23 20:25:18,983 NetUtil.py:105 - Server at https://IPADDRESS.us-west-2.compute.internal:8440 is not reachable, sleeping for 10 seconds... 
', None) 
('Traceback (most recent call last): 
    File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 312, in <module> 
    main(heartbeat_stop_callback) 
    File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 248, in main 
    stop_agent() 
    File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 198, in stop_agent 
    sys.exit(1) 
SystemExit: 1 
INFO 2016-11-23 20:25:18,716 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-11-23 20:25:18,907 main.py:74 - loglevel=logging.INFO 
INFO 2016-11-23 20:25:18,907 DataCleaner.py:39 - Data cleanup thread started 
INFO 2016-11-23 20:25:18,908 DataCleaner.py:120 - Data cleanup started 
INFO 2016-11-23 20:25:18,909 DataCleaner.py:122 - Data cleanup finished 
INFO 2016-11-23 20:25:18,930 PingPortListener.py:50 - Ping port listener started on port: 8670 
INFO 2016-11-23 20:25:18,931 main.py:289 - Connecting to Ambari server at https://IPADDRESS.us-west-2.compute.internal:8440 (172.31.37.172) 
INFO 2016-11-23 20:25:18,931 NetUtil.py:59 - Connecting to https://IPADDRESS.us-west-2.compute.internal:8440/ca 
ERROR 2016-11-23 20:25:18,983 NetUtil.py:77 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) 
ERROR 2016-11-23 20:25:18,983 NetUtil.py:78 - SSLError: Failed to connect. Please check openssl library versions. 
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. 
WARNING 2016-11-23 20:25:18,983 NetUtil.py:105 - Server at https://IPADDRESS.us-west-2.compute.internal:8440 is not reachable, sleeping for 10 seconds... 
', None) 


Connection to IPADDRESS.us-west-2.compute.internal closed. 
SSH command execution finished 
host=IPADDRESS.us-west-2.compute.internal, exitcode=0 
Command end time 2016-11-23 20:25:21 


Registering with the server... 
Registration with the server failed. 

我認爲這是一些基本的東西,但我沒能解決。

openssl版本是1.0.2g

有什麼建議嗎?

謝謝

回答

0

這似乎是與在Ambari服務器主機上使用的JDK相關的已知問題。

該職位here提到應該使用Oracle JDK來解決這個問題。

0

如果這不是上述here提到的JDK問題,那麼用於啓動ambari-agent和ambari-server的python版本會有一些問題。確保兩者都使用相同的版本,即python 2.7等,並重新啓動它們。

P.S在經歷了幾個小時後,我遇到了這個問題,這是由於ambari-server運行python2.6和代理運行在python2.7中。