<?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: WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122043#M17541</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You need to use Ambari API to delete hosts. The best practice is to use &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/API+to+decommission+DataNodes+and+NodeManagers"&gt;this&lt;/A&gt;. you also need to remove the ambari agent if you choose to delete host. You can also run host &lt;A href="https://community.hortonworks.com/content/idea/138/cleanup-scripts-to-remove-old-hdp-bits.html"&gt;clean&lt;/A&gt; up script afterwards to remove any residual files. Going directly to database and removing hosts is not recommended. Here is also some &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host"&gt;info&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 03:46:48 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-02-03T03:46:48Z</dc:date>
    <item>
      <title>WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122042#M17540</link>
      <description>&lt;P&gt;I have a multinode cluster and Ive been adding and removing hosts to the cluster. Ambaris database is MySql.&lt;/P&gt;&lt;P&gt; I have removed a few datanodes and now I see in ambari-server.log the following warning:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host &amp;lt;hostname&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is showing for hostnames that I have removed from the cluster.&lt;/P&gt;&lt;P&gt;What I have done for one hostname and it seemed to work:&lt;/P&gt;&lt;P&gt;I went to mysql database ambari_db and ran these two commands:&lt;/P&gt;&lt;P&gt;delete from hoststate where host_id = 'hostname_id';
delete from hosts where host_name = 'hostname';
commit;
flush privileges
&lt;/P&gt;&lt;P&gt;restarting ambari-server&lt;/P&gt;&lt;P&gt;The WARN for that particular hostname is not showing up again.&lt;/P&gt;&lt;P&gt;Is this the best practice to get rid of the hostnames that were removed from the cluster?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:46:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122042#M17540</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-03T03:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122043#M17541</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You need to use Ambari API to delete hosts. The best practice is to use &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/API+to+decommission+DataNodes+and+NodeManagers"&gt;this&lt;/A&gt;. you also need to remove the ambari agent if you choose to delete host. You can also run host &lt;A href="https://community.hortonworks.com/content/idea/138/cleanup-scripts-to-remove-old-hdp-bits.html"&gt;clean&lt;/A&gt; up script afterwards to remove any residual files. Going directly to database and removing hosts is not recommended. Here is also some &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host"&gt;info&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:46:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122043#M17541</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T03:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122044#M17542</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/931/marko-kole.html" nodeid="931"&gt;@marko&lt;/A&gt;&lt;P&gt;I believe you leveraged ambari to delete the host. Ambari should take care of syncing the node removal. You should not have to run delete from hoststate where host_id = 'hostname_id'; delete from hosts where host_name = 'hostname'; commit; flush privileges&lt;/P&gt;&lt;P&gt;Check ambari logs for more details on what happened during deleting the nodes.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:01:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122044#M17542</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-03T04:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: WARN [ambari-hearbeat-monitor] HeartbeatMonitor:154 - Heartbeat lost from host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122045#M17543</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I followed the following website when removing the hosts:
&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Users_Guide/content/_how_to_delete_a_host_from_a_cluster1.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Users_Guide/content/_how_to_delete_a_host_from_a_cluster1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Prior to that, I shut down all services on the to-be-deleted hosts, shut down the ambari-agent.&lt;/P&gt;&lt;P&gt;Those hosts do not exist anymore so the clean up script cannot be accessed.
I will use the script next time, at the moment, I would like to see if there is anything else I need to take care of, except deleting the hosts in the database.&lt;/P&gt;&lt;P&gt;Maybe Hortonworks people can update the procedure on the above mentioned website?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 05:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/WARN-ambari-hearbeat-monitor-HeartbeatMonitor-154-Heartbeat/m-p/122045#M17543</guid>
      <dc:creator>marko_kole</dc:creator>
      <dc:date>2016-02-03T05:09:56Z</dc:date>
    </item>
  </channel>
</rss>

