Ambari安裝報錯

  1. Ambari安裝報錯
==========================
Creating target directory...
==========================

Command start time 2020-05-08 14:21:45

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:45

==========================
Copying ambari sudo script...
==========================

Command start time 2020-05-08 14:21:45

scp /var/lib/ambari-server/ambari-sudo.sh
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:46

==========================
Copying common functions script...
==========================

Command start time 2020-05-08 14:21:46

scp /usr/lib/ambari-server/lib/ambari_commons
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:47

==========================
Copying create-python-wrap script...
==========================

Command start time 2020-05-08 14:21:47

scp /var/lib/ambari-server/create-python-wrap.sh
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:47

==========================
Copying OS type check script...
==========================

Command start time 2020-05-08 14:21:47

scp /usr/lib/ambari-server/lib/ambari_server/os_check_type.py
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:47

==========================
Running create-python-wrap script...
==========================

Command start time 2020-05-08 14:21:47

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:48

==========================
Running OS type check...
==========================

Command start time 2020-05-08 14:21:48
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:48

==========================
Checking 'sudo' package on remote host...
==========================

Command start time 2020-05-08 14:21:48

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:49

==========================
Copying repo file to 'tmp' folder...
==========================

Command start time 2020-05-08 14:21:49

scp /etc/yum.repos.d/ambari.repo
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:49

==========================
Moving file to repo dir...
==========================

Command start time 2020-05-08 14:21:49

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:50

==========================
Changing permissions for ambari.repo...
==========================

Command start time 2020-05-08 14:21:50

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:50

==========================
Copying setup script file...
==========================

Command start time 2020-05-08 14:21:50

scp /usr/lib/ambari-server/lib/ambari_server/setupAgent.py
host=ambari1, exitcode=0
Command end time 2020-05-08 14:21:51

==========================
Running setup agent script...
==========================

Command start time 2020-05-08 14:21:51
("INFO 2020-05-08 14:22:04,551 HeartbeatHandlers.py:116 - Stop event received
INFO 2020-05-08 14:22:04,551 NetUtil.py:130 - Stop event received
INFO 2020-05-08 14:22:04,551 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2020-05-08 14:22:04,551 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2020-05-08 14:22:06,938 main.py:285 - Agent died gracefully, exiting.
INFO 2020-05-08 14:22:06,938 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2020-05-08 14:22:07,421 main.py:147 - loglevel=logging.INFO
INFO 2020-05-08 14:22:07,422 main.py:147 - loglevel=logging.INFO
INFO 2020-05-08 14:22:07,422 main.py:147 - loglevel=logging.INFO
INFO 2020-05-08 14:22:07,424 DataCleaner.py:39 - Data cleanup thread started
INFO 2020-05-08 14:22:07,427 DataCleaner.py:120 - Data cleanup started
INFO 2020-05-08 14:22:07,427 DataCleaner.py:122 - Data cleanup finished
INFO 2020-05-08 14:22:07,428 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'ambari1' using socket.getfqdn().
INFO 2020-05-08 14:22:07,434 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2020-05-08 14:22:07,436 main.py:439 - Connecting to Ambari server at https://ambari1:8440 (192.168.19.141)
INFO 2020-05-08 14:22:07,436 NetUtil.py:70 - Connecting to https://ambari1:8440/ca
ERROR 2020-05-08 14:22:07,440 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)
ERROR 2020-05-08 14:22:07,440 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 2020-05-08 14:22:07,440 NetUtil.py:124 - Server at https://ambari1:8440 is not reachable, sleeping for 10 seconds...
", None)
("INFO 2020-05-08 14:22:04,551 HeartbeatHandlers.py:116 - Stop event received
INFO 2020-05-08 14:22:04,551 NetUtil.py:130 - Stop event received
INFO 2020-05-08 14:22:04,551 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2020-05-08 14:22:04,551 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2020-05-08 14:22:06,938 main.py:285 - Agent died gracefully, exiting.
INFO 2020-05-08 14:22:06,938 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2020-05-08 14:22:07,421 main.py:147 - loglevel=logging.INFO
INFO 2020-05-08 14:22:07,422 main.py:147 - loglevel=logging.INFO
INFO 2020-05-08 14:22:07,422 main.py:147 - loglevel=logging.INFO
INFO 2020-05-08 14:22:07,424 DataCleaner.py:39 - Data cleanup thread started
INFO 2020-05-08 14:22:07,427 DataCleaner.py:120 - Data cleanup started
INFO 2020-05-08 14:22:07,427 DataCleaner.py:122 - Data cleanup finished
INFO 2020-05-08 14:22:07,428 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'ambari1' using socket.getfqdn().
INFO 2020-05-08 14:22:07,434 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2020-05-08 14:22:07,436 main.py:439 - Connecting to Ambari server at https://ambari1:8440 (192.168.19.141)
INFO 2020-05-08 14:22:07,436 NetUtil.py:70 - Connecting to https://ambari1:8440/ca
ERROR 2020-05-08 14:22:07,440 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)
ERROR 2020-05-08 14:22:07,440 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 2020-05-08 14:22:07,440 NetUtil.py:124 - Server at https://ambari1:8440 is not reachable, sleeping for 10 seconds...
", None)

Connection to ambari1 closed.
SSH command execution finished
host=ambari1, exitcode=0
Command end time 2020-05-08 14:22:10

Registering with the server...

是python版本過高引起的ssl錯誤,降低python版本

解決方案:

  1. 將機器自帶的python版本降低於2.7.5
  2. 使用如下命令,在ambari-agent.ini的security底下添加和在.cfg的https底下添加(針對所有節點)
By adding below config in [security] section of

vi /etc/ambari-agent/conf/ambari-agent.ini
force_https_protocol=PROTOCOL_TLSv1_2


vi /etc/python/cert-verification.cfg 
[https] 
verify=disable
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章