@rahul gulati
Are you sure that when you are running the following command on those hosts individually then you are getting the correct FQDN?
- hostname -f
-
Ambari agent sends registration request to ambari-server every time
when agent is restarted. In the registration request it sends the FQDN
information of it's own as well. Agent uses the following approach to
findout the FQDN using python. So please check if all your hosts are
returning correct hostname
- python -c "import socket; print socket.getfqdn()"
.
Also
in local system it might get using which is not actually FQDN as above.
So local agent might behave bit differently then remote.
- python -c "import socket; print socket.gethostname()"