<?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: hadoop  namenode -format in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206610#M71490</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That's really a very good question. I can see there is still work going on it and one JIRA (&lt;A target="_blank" href="https://issues.apache.org/jira/browse/HDFS-107"&gt; HDFS-107 &lt;/A&gt;) in open state.&lt;/P&gt;&lt;P&gt;So the answer to your first question is obvious NO. Formatting the namenode will surely be going to impact your whole cluster as it's the master node and contains metadata of all of the data nodes. So, formatting namenode is not a good idea in my view.&lt;/P&gt;&lt;P&gt;I have to replicate some steps before answering your second question. But, it's the tricky one. I will try to answer it ASAP.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 08:09:35 GMT</pubDate>
    <dc:creator>sandeepksaini</dc:creator>
    <dc:date>2017-11-21T08:09:35Z</dc:date>
    <item>
      <title>hadoop  namenode -format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206606#M71486</link>
      <description>&lt;P&gt;we have amabri cluster with 24 workers machines&lt;/P&gt;&lt;P&gt;we want to run  following commands only on worker23 machine ( because problem on worker23 ) , dose these commands effected on all FileSystem of all the workers?  or only on worker23 ?&lt;/P&gt;&lt;P&gt;if yes , then how to clean the HDFS directories only on the specific host?&lt;/P&gt;&lt;PRE&gt;     $ hadoop namenode -format

     $ hdfs namenode -format&lt;/PRE&gt;&lt;PRE&gt;


&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2017 01:31:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206606#M71486</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-11-21T01:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop  namenode -format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206607#M71487</link>
      <description>&lt;P&gt;There is only one namenode per HFDS cluster assuming you don't have federation. &lt;/P&gt;&lt;P&gt;The Format namenode command you mentioned will clear all the HDFS namespace info and affect all the other works no matter where the command is being executed. &lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:34:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206607#M71487</guid>
      <dc:creator>xyao</dc:creator>
      <dc:date>2017-11-21T07:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop  namenode -format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206608#M71488</link>
      <description>&lt;P&gt;so how to clean the HDFS directories only on the specific host&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:36:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206608#M71488</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-11-21T07:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop  namenode -format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206609#M71489</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Just to add to what &lt;A rel="user" href="https://community.cloudera.com/users/289/xyao.html" nodeid="289"&gt;@Xiaoyu Yao&lt;/A&gt; said; if you want to clean only a data node (worker23), you will need to ssh to that node. Then you can either format the data disks or delete data. You can see in Ambari which paths map to the data store. But you need to make sure that are actual disks if you want to run format.&lt;/P&gt;&lt;P&gt;A safer approach would be to run "rm -rf /data/disk1", "rm -rf /data/disk2", assuming data node has stored data in a path called /data/disk1 and /data/disk2&lt;/P&gt;&lt;P&gt;Just as &lt;A rel="user" href="https://community.cloudera.com/users/289/xyao.html" nodeid="289"&gt;@Xiaoyu Yao&lt;/A&gt; mentioned, please do NOT format the namenode, the whole cluster will be lost.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206609#M71489</guid>
      <dc:creator>aengineer</dc:creator>
      <dc:date>2017-11-21T07:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop  namenode -format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206610#M71490</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That's really a very good question. I can see there is still work going on it and one JIRA (&lt;A target="_blank" href="https://issues.apache.org/jira/browse/HDFS-107"&gt; HDFS-107 &lt;/A&gt;) in open state.&lt;/P&gt;&lt;P&gt;So the answer to your first question is obvious NO. Formatting the namenode will surely be going to impact your whole cluster as it's the master node and contains metadata of all of the data nodes. So, formatting namenode is not a good idea in my view.&lt;/P&gt;&lt;P&gt;I have to replicate some steps before answering your second question. But, it's the tricky one. I will try to answer it ASAP.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:09:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hadoop-namenode-format/m-p/206610#M71490</guid>
      <dc:creator>sandeepksaini</dc:creator>
      <dc:date>2017-11-21T08:09:35Z</dc:date>
    </item>
  </channel>
</rss>

