<?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 Deleting a dead host from Ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/282579#M210063</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm have a 9 host cluster on HDP 2.6.5.&amp;nbsp; Recently, a host went down and had to be rebuilt.&amp;nbsp; It was hosting ZK server, DataNode and YARN server.&amp;nbsp; Can I safely delete the host from Ambari web UI as I'm unable to turn off the services?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Nov 2019 12:28:07 GMT</pubDate>
    <dc:creator>mikelok</dc:creator>
    <dc:date>2019-11-10T12:28:07Z</dc:date>
    <item>
      <title>Deleting a dead host from Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/282579#M210063</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm have a 9 host cluster on HDP 2.6.5.&amp;nbsp; Recently, a host went down and had to be rebuilt.&amp;nbsp; It was hosting ZK server, DataNode and YARN server.&amp;nbsp; Can I safely delete the host from Ambari web UI as I'm unable to turn off the services?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 12:28:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/282579#M210063</guid>
      <dc:creator>mikelok</dc:creator>
      <dc:date>2019-11-10T12:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a dead host from Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/282672#M210121</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42007"&gt;@mikelok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before you embark on that there are a couple of questions? Have you moved or recreated the zookeeper , YARN, and Datanode on another node?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be having 3 zookeepers at least. and how about your YARN server? Usually, when a host crashed and stops sending the heartbeat after a period of time it's excluded from the health nodes.&lt;/P&gt;&lt;DIV class="tasklabel"&gt;&lt;H2&gt;&lt;STRONG&gt;Procedure&lt;/STRONG&gt;&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="cmd"&gt;1. Decommission DataNodes:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;From the node hosting the NameNode, edit the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph filepath"&gt;$HADOOP_CONF_DIR/dfs. exclude&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file by adding the list of DataNode hostnames, separated by a newline character.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;Update the NameNode with the new set of excluded DataNodes. Run the following command from the NameNode machine:&lt;/SPAN&gt;&lt;DIV class="itemgroup info"&gt;&lt;PRE&gt;# su $HDFS_USER
$ hdfs dfsadmin -refreshNodes&lt;/PRE&gt;$HDFS_USER is the user that owns the HDFS services, which is usually&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword parmname"&gt;hdfs&lt;/SPAN&gt;.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;Open the NameNode web interface, and go to the DataNodes page:&lt;/SPAN&gt;&lt;DIV class="itemgroup info"&gt;&lt;SPAN class="ph filepath"&gt;http://&amp;lt;abc.my_namenode.com&amp;gt;:50070&lt;/SPAN&gt;. Verify that the state is changed to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Decommission in Progress&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the DataNodes that are being decommissioned.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;Shut down the decommissioned nodes when all of the DataNodes are decommissioned. All of the blocks will already be replicated.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;If you use a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph filepath"&gt;dfs.include&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file on your cluster, remove the decommissioned nodes from that file on the NameNode host machine. Then refresh the nodes on that machine:&lt;/SPAN&gt;&lt;DIV class="itemgroup info"&gt;&lt;PRE&gt;# su $HDFS_USER
$ hdfs dfsadmin -refreshNodes&lt;/PRE&gt;If no&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="ph filepath"&gt;dfs.include&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is used, all DataNodes are considered included in the cluster, unless a node exists in a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="ph filepath"&gt;$HADOOP_CONF_DIR/dfs.exclude&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file.&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can also use the Ambari REST API to achieve that&amp;nbsp; here is a reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host" target="_blank" rel="noopener"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 20:48:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/282672#M210121</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-11-11T20:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a dead host from Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/283170#M210478</link>
      <description>&lt;P&gt;Hi Shelton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The steps you provided worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 05:42:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deleting-a-dead-host-from-Ambari/m-p/283170#M210478</guid>
      <dc:creator>mikelok</dc:creator>
      <dc:date>2019-11-17T05:42:12Z</dc:date>
    </item>
  </channel>
</rss>

