<?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: Can not start HDFS which its data was deleted externally in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-not-start-HDFS-which-its-data-was-deleted-externally/m-p/212570#M174506</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/15282/skestepe.html"&gt;Sedat Kestepe&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;STRONG&gt;Stop the Hdfs service&lt;/STRONG&gt; if its running. &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Start only the journal nodes&lt;/STRONG&gt; (as they will need to be made aware of the formatting) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; On the namenode (as user hdfs) &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# su - hdfs &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Format the namenode &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hadoop namenode -format &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Initialize the Edits (for the journal nodes) &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs namenode -initializeSharedEdits -force &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Format Zookeeper (to force zookeeper to reinitialise) &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs zkfc -formatZK -force &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Using Ambari restart  the namenode &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If  you are running HA name node then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;On the second namenode Sync (force synch with first namenode) &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ hdfs namenode -bootstrapStandby -force &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;On every datanode clear the data directory  which is already done in your case&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Restart the HDFS service &lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 22:15:49 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-12-04T22:15:49Z</dc:date>
  </channel>
</rss>

