<?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: cloudera fails to resolve hosts in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42337#M3591</link>
    <description>&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each agent will identify the host to Cloudera Manager with a "uuid" that is set by the agent. &amp;nbsp;So, if you have two hosts with the same uuid (which I assume could occur when cloning), Cloudera Manager would see them as the same host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To verify this is the cause, look at the /var/lib/cloudera-scm-agent/uuid file on each host.&lt;/P&gt;&lt;P&gt;If the uuid value is the same for any hosts, find the hosts that DO NOT appear in Cloudera Manager and do this on the host that is not appearing in CM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service cloudera-scm-agent stop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rm /var/lib/cloudera-scm-agent/uuid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service cloudera-scm-agent start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the agent starts, it should generate a new unique uuid and when it heartbeats to Cloudera Manager, CM should now detect that it is a new host.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 15:29:33 GMT</pubDate>
    <dc:creator>bgooley</dc:creator>
    <dc:date>2016-06-27T15:29:33Z</dc:date>
    <item>
      <title>cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21300#M3585</link>
      <description>&lt;P&gt;Initially, i set up 2 machines (Ubuntu 12.04, x64) on vSphere server.&lt;/P&gt;&lt;P&gt;The name and ip of these two machines were&lt;/P&gt;&lt;PRE&gt;host                  ip
vm-cluster-node1      10.211.55.100
vm-cluster-node2      10.211.55.101&lt;/PRE&gt;&lt;P&gt;I have installed &lt;STRONG&gt;cloudera manager in&lt;/STRONG&gt; vm-cluster-node1.&lt;/P&gt;&lt;P&gt;Then i cloned second one (vm-cluster-node2) to create 2 more hosts, and changed the ip and names as:&lt;/P&gt;&lt;PRE&gt;host                  ip
vm-cluster-node3      10.211.55.102
vm-cluster-node4      10.211.55.103&lt;/PRE&gt;&lt;P&gt;But the problem is, when i add these all 4 machines from cloudera, no matter how many times i try, i can only see two machines in &lt;STRONG&gt;hosts&lt;/STRONG&gt; tab. later i realized that, if i refresh the web-page, i can see 2 machines only, but the second machine is switched between vm-cluster-node2, vm-cluster-node3 and vm-cluster-node4.&lt;/P&gt;&lt;P&gt;to illustrate, i have included images to make things clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/0d864df764dc222aa31094304999b761b17315e6/687474703a2f2f692e737461636b2e696d6775722e636f6d2f567245494b2e706e67" border="0" alt="enter image description here" /&gt;&lt;IMG src="https://ip1.i.lithium.com/1283dcf4968b1aeb195fec8e2f833bdbf2011cc2/687474703a2f2f692e737461636b2e696d6775722e636f6d2f71574661342e706e67" border="0" alt="enter image description here" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/4f2913a21405e5008935036f845e145d5dde6ad4/687474703a2f2f692e737461636b2e696d6775722e636f6d2f54747538492e706e67" border="0" alt="enter image description here" /&gt;&lt;/P&gt;&lt;P&gt;So, as far i've understood, the cloudera manager is not able to resolve the hosts cloned from same source as different machines. Even though the host-names and IPs have been changed. So is there anything that is common in these machines and this problem is occurring?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:12:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21300#M3585</guid>
      <dc:creator>umb</dc:creator>
      <dc:date>2022-09-16T09:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21312#M3586</link>
      <description>&lt;P&gt;The networking and security requirements for installation are listed here, make sure you have read through and configured based on this discussion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_cm_requirements.html#cmig_topic_4_3_3_unique_1"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ig_cm_requirements.html#cmig_topic_4_3_3_unique_1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;each host must be able to perform forward and reverese lookup of the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if /etc/hosts is how you are managing dns, make sure they reflec&amp;nbsp;the proper IP/Hostname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other thing to verify is that your cloned vm's have unique MAC addresses for their network interfaces, you should be able to look at the physical (MAC) address on each node with the ifconfig command.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 18:07:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21312#M3586</guid>
      <dc:creator>Grizzly</dc:creator>
      <dc:date>2014-11-07T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21338#M3587</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;When i checked, i found the machines have different MAC addresses, but reverse DNS is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i have found that the &lt;STRONG&gt;HOST_ID&lt;/STRONG&gt; for the three hosts are same. Is this because i cloned the vms from same source. Could this be the reason for problem. If yes, how can i change the host-id of the hosts?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 07:29:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21338#M3587</guid>
      <dc:creator>umb</dc:creator>
      <dc:date>2014-11-10T07:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21428#M3588</link>
      <description>&lt;P&gt;It could be that the hostID is what is causing the problem. &amp;nbsp;Changing the hostid value on your hosts will be something you need to referfence from your linux distribution's documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see references in our CM code where if we do not find a hostid, that the hostname is used instead, so having duplicate hostid's is probably creating issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tood&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 22:39:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21428#M3588</guid>
      <dc:creator>Grizzly</dc:creator>
      <dc:date>2014-11-11T22:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21448#M3589</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Yes that was the proble,&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Tgrayson wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;It could be that the hostID is what is causing the problem. &amp;nbsp;Changing the hostid value on your hosts will be something you need to referfence from your linux distribution's documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;I see references in our CM code where if we do not find a hostid, that the hostname is used instead, so having duplicate hostid's is probably creating issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Tood&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;i did that.... i changed &lt;STRONG&gt;host id&lt;/STRONG&gt; by modifingfollowing file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;/etc/hosts/cloudera-scm-agent&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;by adding&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000; font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;CMF_AGENT_ARGS="--host_id new_host_id"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 05:47:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/21448#M3589</guid>
      <dc:creator>umb</dc:creator>
      <dc:date>2014-11-12T05:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42330#M3590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have the same problem i.e. when we use 2 clones of the same VM and try to connect the Master node to them, only one of them is visible at a time. We have gone through the thread above and made sure that -&amp;nbsp;&lt;/P&gt;&lt;P&gt;i) Hostnames of the 2 VMs are different&lt;/P&gt;&lt;P&gt;ii) Hostids of the 2 VMs are different&lt;/P&gt;&lt;P&gt;iii) /etc/hosts has names and IPs of all 3 machines i.e. Master, Node1 and Node2&lt;/P&gt;&lt;P&gt;iv) Physical addresses of the 2 VMs is different&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the problem persists. Any further inputs into what could be causing the issue please? Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:05:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42330#M3590</guid>
      <dc:creator>ysk</dc:creator>
      <dc:date>2016-06-27T12:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42337#M3591</link>
      <description>&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each agent will identify the host to Cloudera Manager with a "uuid" that is set by the agent. &amp;nbsp;So, if you have two hosts with the same uuid (which I assume could occur when cloning), Cloudera Manager would see them as the same host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To verify this is the cause, look at the /var/lib/cloudera-scm-agent/uuid file on each host.&lt;/P&gt;&lt;P&gt;If the uuid value is the same for any hosts, find the hosts that DO NOT appear in Cloudera Manager and do this on the host that is not appearing in CM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service cloudera-scm-agent stop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rm /var/lib/cloudera-scm-agent/uuid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service cloudera-scm-agent start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the agent starts, it should generate a new unique uuid and when it heartbeats to Cloudera Manager, CM should now detect that it is a new host.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 15:29:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42337#M3591</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2016-06-27T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera fails to resolve hosts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42361#M3592</link>
      <description>&lt;P&gt;This is fantastic Bgooley! Your solution worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cloned VM indeed had the same UUID as the parent. As per your instructions, we stopped the scm agent, deleted the uuid and restarted scm agent. We then added the node to the cluster via Cloudera Manager and it got registered correctly. We can now see both the VM nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much! Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 04:31:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cloudera-fails-to-resolve-hosts/m-p/42361#M3592</guid>
      <dc:creator>ysk</dc:creator>
      <dc:date>2016-06-28T04:31:55Z</dc:date>
    </item>
  </channel>
</rss>

