Support Questions
Find answers, ask questions, and share your expertise

Ambari 2.2.1 fails to register with nodes

Ambari server is failing to register with any of the hosts.

Ambari version 2.2.1 an HDP 2.4

Following error is generated.

INFO:root:BootStrapping hosts [''] using /usr/lib/python2.6/site-packages/ambari_server cluster primary OS: redhat6 with user 'ambari' sshKey File /var/run/ambari-server/bootstrap/1/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/1 ambari:; server_port: 8080; ambari version:; user_run_as: root INFO:root:Executing parallel bootstrap ERROR:root:ERROR: Bootstrap of host fails because previous action finished with non-zero exit code (177) ERROR MESSAGE: Execute of '<bound method BootstrapDefault.createTargetDir of <BootstrapDefault(Thread-1, started daemon 139776451036928)>>' failed STDOUT: Try to execute '<bound method BootstrapDefault.createTargetDir of <BootstrapDefault(Thread-1, started daemon 139776451036928)>>' INFO:root:Finished parallel bootstrap 12 Apr 2016 01:53:50,897 INFO [pool-8-thread-1] BSHostStatusCollector:55 - Request directory /var/run/ambari-server/bootstrap/1 12 Apr 2016 01:53:50,897 INFO [pool-8-thread-1] BSHostStatusCollector:62 - HostList for polling on [] 12 Apr 2016 01:53:53,367 ERROR [qtp-ambari-client-29] AbstractResourceProvider:280 - Caught AmbariException when creating a resource org.apache.ambari.server.HostNotFoundException: Host not found, hostname= at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(


@shaheer mannan

Can you make sure you have set hostname property in /etc/hosts as well as using hostname command. Try executing below commands -


$hostname -f

Both command should return same output.

New Contributor

Hey, i'm facing similar issue. could you please let me know how this was fixed. Important please.