Support Questions

Find answers, ask questions, and share your expertise

Ambari host registration with server failed with Registration with the server failed.

avatar
Contributor

Node addition failed with

Registering with the server...
Registration with the server failed.
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Sachin Ambardekar

On the agent host do the following first? Then try again:

yum remove ambari-agent -y
rm -rf /etc/ambari-agent/*
rm -rf /var/lib/ambari-agent/*
rm -f /usr/sbin/ambari*
rm -f /usr/lib/python2.6/site-packages/ambari_commons
rm -rf /usr/lib/python2.6/site-packages/resource_management
rm -rf /usr/lib/python2.6/site-packages/ambari_jinja2

And then try installing agent from ambari UI. Or manually install the agent as following:

wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
yum install ambari-agent -y

.

View solution in original post

10 REPLIES 10

avatar
Contributor

you shoul either use ssh (id_rsa) or install ambari-agent on all hosts

after ambari agent is installed (change the  /etc/ambari-agent/conf/ambari-agent.ini ) and set the hostname of ambari-server machine for all machines 

then change the /etc/hosts file ( ip_of_machine1 name_of_machine1

                                                  ip_of_machine2 name_of_machine2....)

then ==> ambari-agent restart for all machines

 trusted and tested