Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari Host Registration Failed, Unable to add new host

Highlighted

Ambari Host Registration Failed, Unable to add new host

I am unable add new hadoop clusters using Ambari. I provided correct FQDN and valid ssh private key

Below are the logs.

==========================
Creating target directory...
==========================
Command start time 2016-11-09 11:18:54
Connection to client_fqdn closed.
SSH command execution finished
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:54
==========================
Copying common functions script...
==========================
Command start time 2016-11-09 11:18:54
scp /usr/lib/python2.6/site-packages/ambari_commons
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:54
==========================
Copying OS type check script...
==========================
Command start time 2016-11-09 11:18:54
scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:54
==========================
Running OS type check...
==========================
Command start time 2016-11-09 11:18:54
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7
Connection to client_fqdn closed.
SSH command execution finished
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:55
==========================
Checking 'sudo' package on remote host...
==========================
Command start time 2016-11-09 11:18:55
sudo-1.8.6p7-17.el7_2.x86_64
Connection to client_fqdn closed.
SSH command execution finished
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:55
==========================
Copying repo file to 'tmp' folder...
==========================
Command start time 2016-11-09 11:18:55
scp /etc/yum.repos.d/ambari.repo
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:55
==========================
Moving file to repo dir...
==========================
Command start time 2016-11-09 11:18:55
Connection to client_fqdn closed.
SSH command execution finished
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:56
==========================
Changing permissions for ambari.repo...
==========================
Command start time 2016-11-09 11:18:56
Connection to client_fqdn closed.
SSH command execution finished
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:56
==========================
Copying setup script file...
==========================
Command start time 2016-11-09 11:18:56
scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=client_fqdn, exitcode=0
Command end time 2016-11-09 11:18:56
==========================
Running setup agent script...
==========================
Command start time 2016-11-09 11:18:56
Repository Updates-ambari-2.2.1.0 is listed more than once in the configuration
('WARNING 2016-11-09 11:18:57,482 NetUtil.py:89 - Failed to connect to mater_fqdn/ca due to [Errno 4] Interrupted system call  
WARNING 2016-11-09 11:18:57,482 NetUtil.py:112 - Server at https://master_fqdn:8440 is not reachable, sleeping for 10 seconds...
ERROR 2016-11-09 11:19:02,490 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-11-09 11:19:02,490 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-11-09 11:19:02,760 main.py:71 - loglevel=logging.INFO
INFO 2016-11-09 11:19:02,761 main.py:71 - loglevel=logging.INFO
INFO 2016-11-09 11:19:02,762 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-11-09 11:19:02,763 DataCleaner.py:120 - Data cleanup started
INFO 2016-11-09 11:19:02,763 DataCleaner.py:122 - Data cleanup finished
INFO 2016-11-09 11:19:02,768 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-11-09 11:19:02,769 main.py:283 - Connecting to Ambari server at https://master_fqdn:8440 (40.113.11.95)
INFO 2016-11-09 11:19:02,769 NetUtil.py:60 - Connecting to https://master_fqdn:8440/ca
', None)
('WARNING 2016-11-09 11:18:57,482 NetUtil.py:89 - Failed to connect to 
master_fqdn
/ca due to [Errno 4] Interrupted system call WARNING 2016-11-09 11:18:57,482 NetUtil.py:112 - Server at master_fqdn is not reachable, sleeping for 10 seconds... ERROR 2016-11-09 11:19:02,490 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-11-09 11:19:02,490 ExitHelper.py:53 - Performing cleanup before exiting... INFO 2016-11-09 11:19:02,760 main.py:71 - loglevel=logging.INFO INFO 2016-11-09 11:19:02,761 main.py:71 - loglevel=logging.INFO INFO 2016-11-09 11:19:02,762 DataCleaner.py:39 - Data cleanup thread started INFO 2016-11-09 11:19:02,763 DataCleaner.py:120 - Data cleanup started INFO 2016-11-09 11:19:02,763 DataCleaner.py:122 - Data cleanup finished INFO 2016-11-09 11:19:02,768 PingPortListener.py:50 - Ping port listener started on port: 8670 INFO 2016-11-09 11:19:02,769 main.py:283 - Connecting to Ambari server at master_fqdn:8440 (40.113.11.95) INFO 2016-11-09 11:19:02,769 NetUtil.py:60 - Connecting to master_fqdn:8440/ca ', None) Connection to client_fqdn closed. SSH command execution finished host=client_fqdn, exitcode=0 Command end time 2016-11-09 11:19:05 Registering with the server... Registration with the server failed.
5 REPLIES 5
Highlighted

Re: Ambari Host Registration Failed, Unable to add new host

Mentor

@Abhishek Srivastava please check your repos, you have duplicate entries for Ambari. Also make sure endpoints for your ambari server are open, it says it can't reach that node. Do you have correct entries in your /etc/hosts? Can all nodes see each other?

Highlighted

Re: Ambari Host Registration Failed, Unable to add new host

Mentor

@Abhishek Srivastava please also refrain from publishing the host names for your company clusters, this is a public forum

Highlighted

Re: Ambari Host Registration Failed, Unable to add new host

Yeah..that's right...I got carried away...Thanks dear.

Re: Ambari Host Registration Failed, Unable to add new host

@Artem Ervits There were no duplicate Ambari in repos and /etc/hosts file having correct entries too what I believe, but for some reason unable to ping from existing HDP hosts to New hosts

So, HDP hosts(6 nodes) server having entries in /etc/hosts for themselves (with their private IPs because they share the same network and respective FQDN ) and added one more entry for new host (which I am trying to add as a new node) with its public ip (not private ip, because its on different network).

New hosts having the same details but other way round. Public IPs for existing HDP 6 hosts and private ip for itself.

But ping is still not happening between existing and new node. What step am I missing or making all wrong ?

Highlighted

Re: Ambari Host Registration Failed, Unable to add new host

Super Guru

@Abhishek Srivastava

Are they belongs to different subnet? in that case you might need to add a route in order to allow communication between different subnets.

Don't have an account?
Coming from Hortonworks? Activate your account here