<?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: DATA NODE  was removed from Ambari - Due to Rackwareness topology Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/DATA-NODE-was-removed-from-Ambari-Due-to-Rackwareness/m-p/206920#M168881</link>
    <description>&lt;P style="margin-left: 40px;"&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15104/ssanupindi.html" nodeid="15104"&gt;@hdpadmin overlandpark&lt;/A&gt; Thanks for working with me over the Support portal. I will put the steps here for others reference: &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;The Topology information is CACHED in NN and so, when ever there is change to Topology we need to restart the NN to clear it. &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
In our case Datanode is originally registered without rack (default-rack) and due to caching, NN will not allow it to join when its online. &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
So to fix this issue, we have to restart namenode, which will pick up the current updated rack information. &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
To avoid a NN restart, there is a workaround to add a new DataNode to a specific Rack without the need of restarting the NameNode:&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;a. Add the New Node in Ambari without choosing 'DataNode' component &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
b. From Ambari Hosts tab, Select the new Node and add 'DataNode' component &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
c. Click 'Host Actions' -&amp;gt; 'Set Rack' and specify the required Rack Name &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
d. From the Ambari Hosts tab, go to the NameNode Host and Refresh the client configs by dropping down the Menu next to Clients. 
This step will update /etc/hadoop/conf/topology_mappings.data on the NameNode with the new topology information for the DN. &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
e. Start the DataNode service on the new Node. &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
f. Once the Datanode is up, confirm its Rack topology information, by running the following command on any node with hdfs client: &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
# su - hdfs &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
# hdfs dfsadmin -report &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;
In short, the Topology should be updated before a Datanode is started (at which point it tries to register with the NN) &lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 04:22:19 GMT</pubDate>
    <dc:creator>rsheela</dc:creator>
    <dc:date>2017-04-26T04:22:19Z</dc:date>
  </channel>
</rss>

