<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Host Name Resolution Issues in Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108416#M54600</link>
    <description>&lt;P&gt;I was able to deploy the cluster. Thanks!!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 13:58:27 GMT</pubDate>
    <dc:creator>munnyrahul</dc:creator>
    <dc:date>2017-02-16T13:58:27Z</dc:date>
    <item>
      <title>Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108405#M54589</link>
      <description>&lt;P&gt;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&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6&lt;/P&gt;&lt;P&gt;1.2.3.4 abcd&lt;/P&gt;&lt;P&gt;3.4.5.6 etf&lt;/P&gt;&lt;P&gt;7.8.9.1 sco&lt;/P&gt;&lt;P&gt;10.11.12.13 jfjf&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:56:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108405#M54589</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T22:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108406#M54590</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15105/rahgulati.html" nodeid="15105"&gt;@rahul gulati&lt;/A&gt;&lt;P&gt;Can you make sure the output of "$hostname" and "$hostname -f" are same?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:58:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108406#M54590</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2017-02-15T22:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108407#M54591</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15105/rahgulati.html" nodeid="15105"&gt;@rahul gulati&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are you sure that when you are running the following command on those hosts individually then you are getting the correct FQDN?&lt;/P&gt;&lt;PRE&gt;hostname -f&lt;/PRE&gt;&lt;P&gt;- 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 &lt;/P&gt;&lt;PRE&gt;python -c "import socket; print socket.getfqdn()"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also in local system it might get using which is not actually FQDN as above. So local agent might behave bit differently then remote.&lt;/P&gt;&lt;PRE&gt;python -c "import socket; print socket.gethostname()"&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:59:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108407#M54591</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-15T22:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108408#M54592</link>
      <description>&lt;P&gt;Output of hostname and hostname -f are same&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:01:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108408#M54592</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T23:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108409#M54593</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i am getting correct fqdn when i run hostname -f. I matched it with my azure portal as well. Only thing which is different is that in azure portal it has .westus.azure.com appended in the end of hostname while on machines its just hostname without above suffix. But i tried giving that as well in /etc/hosts and it didnot worked out.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:06:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108409#M54593</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T23:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108410#M54594</link>
      <description>&lt;P&gt;Just to reiterate&lt;/P&gt;&lt;P&gt;" Does it has something to do with IP in ambari.ini file slaves and edge node" as i have mentioned earlier as well that my ambari.ini file on slaves and edge nodes have IP of master in server hostname while master node has fqdn of server hostname.&lt;/P&gt;&lt;P&gt;Just mentioning again.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:07:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108410#M54594</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T23:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108411#M54595</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;I ran python -c "import socket; print socket.gethostname()" on all 4 nodes and i am getting same fqdn as that of hostname -f. So i think we are good here.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:11:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108411#M54595</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T23:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108412#M54596</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Any implications if i ignore the warning and move further with cluster install? Will it cause any issue further?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:12:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108412#M54596</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T23:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108413#M54597</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15105/rahgulati.html" nodeid="15105"&gt;@rahul gulati
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are using "azur" (from your hostname it looks like) then you should be using "Private IP" address inside your /etc/hosts file (if you are using public ip then please change it). Although it might not be related to your query.&lt;/P&gt;&lt;P&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/15105/rahgulati.html" nodeid="15105"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:16:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108413#M54597</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-15T23:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108414#M54598</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am using private IP's in my /etc/hosts file&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:21:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108414#M54598</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-15T23:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108415#M54599</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15105/rahgulati.html" nodeid="15105"&gt;@rahul gulati&lt;/A&gt;
I do not see that there will be any issues , as long as you see correct hostnames listed in the following URL:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/" target="_blank"&gt;http://AMBARI_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;Please replace the "AMBARI_HOST" and "CLUSTER_NAME" in your browser and then check if you are seeing correct hosts with correct hostnames. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 00:49:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108415#M54599</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-16T00:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Host Name Resolution Issues in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108416#M54600</link>
      <description>&lt;P&gt;I was able to deploy the cluster. Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 13:58:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Host-Name-Resolution-Issues-in-Ambari/m-p/108416#M54600</guid>
      <dc:creator>munnyrahul</dc:creator>
      <dc:date>2017-02-16T13:58:27Z</dc:date>
    </item>
  </channel>
</rss>

