<?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 Failed to add new Host through Cloudera Manager in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34556#M11142</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We're running &lt;STRONG&gt;RedHat 6.4&lt;/STRONG&gt; on &lt;STRONG&gt;2&lt;/STRONG&gt; of our nodes.&lt;BR /&gt;We've installed the new Cloudera Manager &lt;STRONG&gt;5.5.0&lt;/STRONG&gt; and we've been trying to create a cluster and add a first node to it (node is initially clean of any Cloudera component). Unfortunately, during the cluster installation, Cloudera Manager gets stuck every time at :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Installation failed. Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules).
Ensure that ports 9000 and 9001 are not in use on the host being added.
Check agent logs in /var/log/cloudera-scm-agent/ on the host being added. (Some of the logs can be found in the installation details).
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -&amp;gt; Settings -&amp;gt; Security), ensure that /etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being added. Restart the corresponding agent and click the Retry link here.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We looked around and saw how this is usually caused by a misconfigured &lt;STRONG&gt;/etc/hosts&lt;/STRONG&gt; file. So we edited ours on both Cloudera Manager and the new node, did a &lt;STRONG&gt;service network restart&lt;/STRONG&gt; as well as &lt;STRONG&gt;service cloudera-scm-server restart&lt;/STRONG&gt; but it didn't work either.&lt;BR /&gt;Here's what the&lt;STRONG&gt; /etc/hosts&lt;/STRONG&gt; file looks like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;127.0.0.1 localhost
10.186.80.86 domain.node2.fr.net host
10.186.80.105 domain.node1.fr.net mgrnode&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also tried some cleaning up before relaunching the cluster creation by deleting &lt;STRONG&gt;scm_prepare_node.*&lt;/STRONG&gt; and &lt;STRONG&gt;.scm_prepare_node.lock&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;We looked at &lt;STRONG&gt;service cloudera-scm-agent status&lt;/STRONG&gt; on the new node after each installation fail as well, and we noticed that the service isn't running (even when we do a service restart, the result is still the same)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;service cloudera-scm-agent start 
Starting cloudera-scm-agent: [ OK ] 
service cloudera-scm-agent status 
cloudera-scm-agent dead but pid file exists&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the agent logs on the new node side :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;tail -f /var/log/cloudera-scm-agent/cloudera-scm-agent.log 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Agent Logging Level: INFO 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO No command line vars 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Missing database jar: /usr/share/java/mysql-connector-java.jar (normal, if you're not using this database type) 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Missing database jar: /usr/share/java/oracle-connector-java.jar (normal, if you're not using this database type) 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Found database jar: /usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Agent starting as pid 24529 user cloudera-scm(420) group cloudera-scm(207). 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Because agent not running as root, all processes will run with current user. 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent WARNING Expected mode 0751 for /var/run/cloudera-scm-agent but was 0755 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent 
[30/Nov/2015 15:07:29 +0000] 24529 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/cgroups&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is there anything we're doing wrong?&lt;BR /&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:50:45 GMT</pubDate>
    <dc:creator>raniabm</dc:creator>
    <dc:date>2022-09-16T09:50:45Z</dc:date>
    <item>
      <title>Failed to add new Host through Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34556#M11142</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We're running &lt;STRONG&gt;RedHat 6.4&lt;/STRONG&gt; on &lt;STRONG&gt;2&lt;/STRONG&gt; of our nodes.&lt;BR /&gt;We've installed the new Cloudera Manager &lt;STRONG&gt;5.5.0&lt;/STRONG&gt; and we've been trying to create a cluster and add a first node to it (node is initially clean of any Cloudera component). Unfortunately, during the cluster installation, Cloudera Manager gets stuck every time at :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Installation failed. Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules).
Ensure that ports 9000 and 9001 are not in use on the host being added.
Check agent logs in /var/log/cloudera-scm-agent/ on the host being added. (Some of the logs can be found in the installation details).
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -&amp;gt; Settings -&amp;gt; Security), ensure that /etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being added. Restart the corresponding agent and click the Retry link here.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We looked around and saw how this is usually caused by a misconfigured &lt;STRONG&gt;/etc/hosts&lt;/STRONG&gt; file. So we edited ours on both Cloudera Manager and the new node, did a &lt;STRONG&gt;service network restart&lt;/STRONG&gt; as well as &lt;STRONG&gt;service cloudera-scm-server restart&lt;/STRONG&gt; but it didn't work either.&lt;BR /&gt;Here's what the&lt;STRONG&gt; /etc/hosts&lt;/STRONG&gt; file looks like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;127.0.0.1 localhost
10.186.80.86 domain.node2.fr.net host
10.186.80.105 domain.node1.fr.net mgrnode&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also tried some cleaning up before relaunching the cluster creation by deleting &lt;STRONG&gt;scm_prepare_node.*&lt;/STRONG&gt; and &lt;STRONG&gt;.scm_prepare_node.lock&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;We looked at &lt;STRONG&gt;service cloudera-scm-agent status&lt;/STRONG&gt; on the new node after each installation fail as well, and we noticed that the service isn't running (even when we do a service restart, the result is still the same)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;service cloudera-scm-agent start 
Starting cloudera-scm-agent: [ OK ] 
service cloudera-scm-agent status 
cloudera-scm-agent dead but pid file exists&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the agent logs on the new node side :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;tail -f /var/log/cloudera-scm-agent/cloudera-scm-agent.log 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Agent Logging Level: INFO 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO No command line vars 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Missing database jar: /usr/share/java/mysql-connector-java.jar (normal, if you're not using this database type) 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Missing database jar: /usr/share/java/oracle-connector-java.jar (normal, if you're not using this database type) 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Found database jar: /usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Agent starting as pid 24529 user cloudera-scm(420) group cloudera-scm(207). 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Because agent not running as root, all processes will run with current user. 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent WARNING Expected mode 0751 for /var/run/cloudera-scm-agent but was 0755 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent 
[30/Nov/2015 15:07:29 +0000] 24529 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/cgroups&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is there anything we're doing wrong?&lt;BR /&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:50:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34556#M11142</guid>
      <dc:creator>raniabm</dc:creator>
      <dc:date>2022-09-16T09:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to add new Host through Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34648#M11143</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unsure if your /etc/hosts is the real one, but ensure that you meet all the &lt;SPAN class="il"&gt;requirements&lt;/SPAN&gt; under "&lt;SPAN class="il"&gt;Networking&lt;/SPAN&gt; &lt;SPAN class="il"&gt;and&lt;/SPAN&gt; &lt;SPAN class="il"&gt;Security&lt;/SPAN&gt; &lt;SPAN class="il"&gt;Requirements&lt;/SPAN&gt;" in the following guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cm_ig_cm_requirements.html" target="_blank"&gt;http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cm_ig_cm_requirements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also it looks you're enabling single user mode per "Because agent not running as root". Is this correct? Have you followed the guide below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/install_singleuser_reqts.html" target="_blank"&gt;http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/install_singleuser_reqts.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34648#M11143</guid>
      <dc:creator>dice</dc:creator>
      <dc:date>2015-12-02T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to add new Host through Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34665#M11144</link>
      <description>&lt;P&gt;Found the solution and it's almost like you said @dice.&lt;/P&gt;&lt;P&gt;This time we just created the cluster with the root user (didn't&amp;nbsp;check the single user mode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides, our host had no internet access, and having created our own repository we needed to do one last step before launching the cluster creation which is importing the GPG key on the host using this command :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo rpm --import &amp;lt;gpg_key_path&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody finds themselves facing the same problem, hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:37:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-add-new-Host-through-Cloudera-Manager/m-p/34665#M11144</guid>
      <dc:creator>raniabm</dc:creator>
      <dc:date>2015-12-02T14:37:55Z</dc:date>
    </item>
  </channel>
</rss>

