Support Questions

Find answers, ask questions, and share your expertise

Host Name Resolution Issues in Ambari

avatar
Rising Star

I am getting Hostname Resolution Issue while trying to deploy 4 node cluster on Azure VM's. Although i am able to register all my hosts successfully but i am seeing a warning. Below are the details

My ambari-agents are successfully registered with ambari-server but i am seeing a warning which says that hostname resolution issue in which it says not all the hosts could resolve hostname of other hosts.

Although i have added the IP addresses and hostnames of all the hosts in /etc/hosts files of all the 4 nodes. But still it is not able to resolve. Anything else to do?

Below is my example /etc/hosts file on edge node(where abcd, etf, sco, jfjf are hostnames of edge, master, slave1 and slave 2 nodes resp). Same goes with all other nodes as well

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

1.2.3.4 abcd

3.4.5.6 etf

7.8.9.1 sco

10.11.12.13 jfjf

Please note that the ambari.ini file on slave1, slave2 and edge node has IP address as hostname while master node file has hostname of masternode. This is how it is setup and is working. Because i tried to register ambari agents by giving hostname in ambari.ini files of slaves and edge node but i was getting failure but master ambari agent was able to register with ambari server with fqdn.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@rahul gulati I do not see that there will be any issues , as long as you see correct hostnames listed in the following URL:

http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/

Please replace the "AMBARI_HOST" and "CLUSTER_NAME" in your browser and then check if you are seeing correct hosts with correct hostnames.

For more detail look on the issue it would be good if you can share the exact error/warning message that you are getting while starting agents/server.

View solution in original post

11 REPLIES 11

avatar
Master Mentor

@rahul gulati I do not see that there will be any issues , as long as you see correct hostnames listed in the following URL:

http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/

Please replace the "AMBARI_HOST" and "CLUSTER_NAME" in your browser and then check if you are seeing correct hosts with correct hostnames.

For more detail look on the issue it would be good if you can share the exact error/warning message that you are getting while starting agents/server.

avatar
Rising Star

I was able to deploy the cluster. Thanks!!