Created 03-10-2016 01:57 AM
I am trying to add a new host to my existing cluster. Below is what I have done so far:
a.) I installed Ambari-Agent on the new hosts and modified the INI file to point to the ambari-server hosts
b.) Verified that new host is able to ping ambari-server and vice versa.
c.) Verified that the Ambari-Server port is open from the new hosts
What else Ambari-Server looks for ? If it can ping the new host and new host can ping and the ambari-server is reachable why it can't register. What's the missing part ?
Thanks
Prakash
Created 03-10-2016 04:02 AM
Ping is not enough. If you run iptables, stop them for a while to see if some ports are blocked. Agents are accessing the server at 8080, 8440 and 8441, and the server is pinging agents at 8670. Details are here. And, well, you haven't mentioned starting ambari-agent, but I'm sure you did it.
Created 03-10-2016 02:00 AM
whata does the Ambari server log say?
Created 03-10-2016 04:02 AM
Ping is not enough. If you run iptables, stop them for a while to see if some ports are blocked. Agents are accessing the server at 8080, 8440 and 8441, and the server is pinging agents at 8670. Details are here. And, well, you haven't mentioned starting ambari-agent, but I'm sure you did it.
Created 03-10-2016 06:33 PM
Thanks. Not sure what was wrong but I restarted AMbari-Agent and this time it got connected..
Thanks
Created 03-10-2016 05:29 AM
Sorry what you ave done on the new host is not enough . There are are more important steps that you should never ignore, Assuming that the your corporate or whatever network rules allows the new host and the Ambari server to communicate no proxy or firewall rules etc.
Just have a look at attached document and again IGNORE nothing all have to be successful implemented to succeed your new host integration to your cluster
PS.remember to clean the failed registration too
Created 03-10-2016 06:34 PM
Thanks. Actually I did all those host entries but still it was failing. So today I rebooted the machine and restarted Ambari-Agent and it was able to connect..
Thanks
Created 05-01-2017 05:47 AM
hi, I had the same problem as Prakash. I read the pdf you've attached. most steps were done before. the only change I made was disabling transparent huge page.
after that my ambari failed to start. i tried stop/start and even remove/install ambari. but the error resists. I even enabled THP again. actually when I start the service, it says it was successful, but the answer to 'systemctl status ambari-server' is:
ambari-server.service - LSB: ambari-server daemon Loaded: loaded (/etc/rc.d/init.d/ambari-
server; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2017-05-01 04:52:43 UTC; 40min ago Docs: man:systemd-sysv-generator(8)
May 01 04:52:43 node1.novalocal systemd[1]: Starting LSB: ambari-server daem.... May 01 04:52:43 node1.novalocal ambari-server[3400]: Need python version > 2.6 May 01 04:52:43 node1.novalocal systemd[1]: ambari-server.service: control p...1 May 01 04:52:43 node1.novalocal systemd[1]: Failed to start LSB: ambari-serv.... May 01 04:52:43 node1.novalocal systemd[1]: Unit ambari-server.service enter.... May 01 04:52:43 node1.novalocal systemd[1]: ambari-server.service failed. Hint: Some lines were ellipsized, use -l to show in full.
Created 03-10-2016 04:08 PM
I hope you have stopped iptables and disabled selinux as others have suggested. Please ensure that passwordless connection is going ok between the nodes. Is the right id_rsa copied to the host registration? Else, add the node manually. To do this, install ambari-agent manually in the host being added and then try the registration.
Created 03-11-2016 05:32 AM
Definitely all the steps I attached MUST be implemented but if the Ambari server had already locked that port for use then subsequent attempts would't work untill the process using that Ambari port is killed .
Happy it worked out for you.
Created 11-20-2016 07:24 PM
Update: 11/20/2016
For using Ambari-agent , must include this vital missing code when editing ambari server hostname in
/etc/ambari-agent/conf/ambari-agent.ini.
I couldn' get the host to talk to Ambari server until i put this (ip_addres=x.x.x.x) in.
vi /etc/ambari-agent/conf/amabari-agent.ini
[server]
hostname=your.ambari_server.name
ip_address=x.x.x.x <--------------this is most important to ensure the host can talk to ur ambari server
url_port=8440
secured_url_port=8441