Created 10-20-2017 08:37 AM
I'm trying to register hostnames in Ambari but getting the error below. Any ideas?
Regards,
Florin
==========================
Creating target directory...
==========================
Command start time 2017-10-20 11:14:48
Connection to node.bigdata.com closed.
SSH command execution finished
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:48
==========================
Copying common functions script...
==========================
Command start time 2017-10-20 11:14:48
scp /usr/lib/python2.6/site-packages/ambari_commons
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:49
==========================
Copying OS type check script...
==========================
Command start time 2017-10-20 11:14:49
scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:49
==========================
Running OS type check...
==========================
Command start time 2017-10-20 11:14:49
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7
Connection to node.bigdata.com closed.
SSH command execution finished
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:49
==========================
Checking 'sudo' package on remote host...
==========================
Command start time 2017-10-20 11:14:49
sudo-1.8.19p2-10.el7.x86_64
Connection to node.bigdata.com closed.
SSH command execution finished
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:50
==========================
Copying repo file to 'tmp' folder...
==========================
Command start time 2017-10-20 11:14:50
scp /etc/yum.repos.d/ambari.repo
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:51
==========================
Moving file to repo dir...
==========================
Command start time 2017-10-20 11:14:51
Connection to node.bigdata.com closed.
SSH command execution finished
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:51
==========================
Changing permissions for ambari.repo...
==========================
Command start time 2017-10-20 11:14:51
Connection to node.bigdata.com closed.
SSH command execution finished
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:51
==========================
Copying setup script file...
==========================
Command start time 2017-10-20 11:14:51
scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:14:52
==========================
Running setup agent script...
==========================
Command start time 2017-10-20 11:14:52
('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 2017-10-20 11:14:59,442 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2017-10-20 11:14:59,832 main.py:74 - loglevel=logging.INFO
INFO 2017-10-20 11:14:59,833 DataCleaner.py:39 - Data cleanup thread started
INFO 2017-10-20 11:14:59,835 DataCleaner.py:120 - Data cleanup started
INFO 2017-10-20 11:14:59,836 DataCleaner.py:122 - Data cleanup finished
INFO 2017-10-20 11:15:00,015 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2017-10-20 11:15:00,017 main.py:289 - Connecting to Ambari server at https://node.bigdata.com:8440 (192.168.0.101)
INFO 2017-10-20 11:15:00,017 NetUtil.py:59 - Connecting to https://node.bigdata.com:8440/ca
ERROR 2017-10-20 11:15:00,094 NetUtil.py:77 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
ERROR 2017-10-20 11:15:00,094 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 2017-10-20 11:15:00,095 NetUtil.py:105 - Server at https://node.bigdata.com: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 2017-10-20 11:14:59,442 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2017-10-20 11:14:59,832 main.py:74 - loglevel=logging.INFO
INFO 2017-10-20 11:14:59,833 DataCleaner.py:39 - Data cleanup thread started
INFO 2017-10-20 11:14:59,835 DataCleaner.py:120 - Data cleanup started
INFO 2017-10-20 11:14:59,836 DataCleaner.py:122 - Data cleanup finished
INFO 2017-10-20 11:15:00,015 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2017-10-20 11:15:00,017 main.py:289 - Connecting to Ambari server at https://node.bigdata.com:8440 (192.168.0.101)
INFO 2017-10-20 11:15:00,017 NetUtil.py:59 - Connecting to https://node.bigdata.com:8440/ca
ERROR 2017-10-20 11:15:00,094 NetUtil.py:77 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
ERROR 2017-10-20 11:15:00,094 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 2017-10-20 11:15:00,095 NetUtil.py:105 - Server at https://node.bigdata.com:8440 is not reachable, sleeping for 10 seconds...
', None)
Connection to node.bigdata.com closed.
SSH command execution finished
host=node.bigdata.com, exitcode=0
Command end time 2017-10-20 11:15:02
Registering with the server...
Registration with the server failed.
Created 10-20-2017 12:13 PM
Run the below command on all the ambari agent nodes. Quick and easy
sed -i 's/verify=platform_default/verify=disable/'/etc/python/cert-verification.cfg
Thanks,
Aditya
Created 10-20-2017 09:01 AM
I think your problem is exactly what Jay SenSharma addressed
As you using Python version "python-2.7.5" or higher, hence you should try to either downgrade the python version to lower than python-2.7.5 as it causes this issue.
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)<br>
(OR)
Else you will need to following the steps mentioned in the following doc to fix the "certificate verify failed (_ssl.c" issue while using RHEL7: Controlling and troubleshooting certificate verification
https://access.redhat.com/articles/2039753#controlling-certificate-verification-7
Also we will suggest you to remove the Ambari Server certificates as mentioned in the following doc so that new certificates can be generated by ambari.
https://cwiki.apache.org/confluence/display/AMBARI/Handling+Expired+HTTPS+Certificates
https://community.hortonworks.com/articles/68799/steps-to-fix-ambari-server-agent-expired-certs.html
Created 10-20-2017 12:13 PM
Run the below command on all the ambari agent nodes. Quick and easy
sed -i 's/verify=platform_default/verify=disable/'/etc/python/cert-verification.cfg
Thanks,
Aditya
Created 10-24-2017 05:20 PM
It works.Thanks!
Created 10-24-2017 05:23 PM
Can you kindly accept the answer. This will be very useful for the community users.
Thanks,
Aditya