<?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: Not able to format Namenode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233367#M79937</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;, Today, I have managed to format namenode successfully. One of the journal node's meta data  was not in sync with other two journal nodes. That 's the reason problematic journal node was getting locked every time when I was trying to format the name node. After copying data from good journal node's directory  to problematic journal node 's directory,allowed me to format namenode. I also deleted &lt;EM&gt;&lt;STRONG&gt;in_use.lock &lt;/STRONG&gt;files from all 3 journal nodes before executing&lt;STRONG&gt; hdfs namenode -format &lt;/STRONG&gt;command.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank you so much for your assistance on this.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 23:59:49 GMT</pubDate>
    <dc:creator>samant_thakur</dc:creator>
    <dc:date>2018-06-27T23:59:49Z</dc:date>
    <item>
      <title>Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233361#M79931</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We were experiencing issue with 4 of data nodes which were not sending the block reports to name node. In order to resolve that issue, we have formatted all the data node dirs for all the data nodes and decommissioned and recommissioned the data nodes.Also deleted all the data from hdfs. when I am trying to format the name node. I am getting below error.&lt;/P&gt;&lt;PRE&gt;18/06/26 16:32:05 WARN namenode.NameNode: Encountered exception during format:
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 exceptions thrown:
10.217.99.13:8485: Cannot lock storage /hadoop/hdfs/journal/HDPDRHA. The directory is already locked
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.lock(Storage.java:743)
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:551)
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:502)
        at org.apache.hadoop.hdfs.qjournal.server.JNStorage.analyzeAndRecoverStorage(JNStorage.java:227)
        at org.apache.hadoop.hdfs.qjournal.server.JNStorage.&amp;lt;init&amp;gt;(JNStorage.java:76)
        at org.apache.hadoop.hdfs.qjournal.server.Journal.&amp;lt;init&amp;gt;(Journal.java:143)
        at org.apache.hadoop.hdfs.qjournal.server.JournalNode.getOrCreateJournal(JournalNode.java:90)
        at org.apache.hadoop.hdfs.qjournal.server.JournalNode.getOrCreateJournal(JournalNode.java:99)
        at org.apache.hadoop.hdfs.qjournal.server.JournalNodeRpcServer.isFormatted(JournalNodeRpcServer.java:120)
        at org.apache.hadoop.hdfs.qjournal.protocolPB.QJournalProtocolServerSideTranslatorPB.isFormatted(QJournalProtocolServerSideTranslatorPB.java:103)
        at org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos$QJournalProtocolService$2.callBlockingMethod(QJournalProtocolProtos.java:25399)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2351)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2347)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2345)


        at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
        at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:965)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:179)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1185)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1631)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1769)
18/06/26 16:32:05 ERROR namenode.NameNode: Failed to start namenode.
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 exceptions thrown:
10.217.99.13:8485: Cannot lock storage /hadoop/hdfs/journal/HDPDRHA. The directory is already locked
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.lock(Storage.java:743)
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:551)
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:502)
        at org.apache.hadoop.hdfs.qjournal.server.JNStorage.analyzeAndRecoverStorage(JNStorage.java:227)
        at org.apache.hadoop.hdfs.qjournal.server.JNStorage.&amp;lt;init&amp;gt;(JNStorage.java:76)
        at org.apache.hadoop.hdfs.qjournal.server.Journal.&amp;lt;init&amp;gt;(Journal.java:143)
        at org.apache.hadoop.hdfs.qjournal.server.JournalNode.getOrCreateJournal(JournalNode.java:90)
        at org.apache.hadoop.hdfs.qjournal.server.JournalNode.getOrCreateJournal(JournalNode.java:99)
        at org.apache.hadoop.hdfs.qjournal.server.JournalNodeRpcServer.isFormatted(JournalNodeRpcServer.java:120)
        at org.apache.hadoop.hdfs.qjournal.protocolPB.QJournalProtocolServerSideTranslatorPB.isFormatted(QJournalProtocolServerSideTranslatorPB.java:103)
        at org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos$QJournalProtocolService$2.callBlockingMethod(QJournalProtocolProtos.java:25399)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2351)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2347)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2345)


        at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
        at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:965)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:179)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1185)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1631)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1769)
18/06/26 16:32:05 INFO util.ExitUtil: Exiting with status 1
18/06/26 16:32:05 INFO namenode.NameNode: SHUTDOWN_MSG:
&lt;/PRE&gt;&lt;P&gt;I stopped both name nodes ,only journal nodes are online when executing below command.&lt;/P&gt;&lt;PRE&gt; hadoop namenode -format&lt;/PRE&gt;&lt;P&gt;Any idea why I am getting above error?.. Thank you so much for your assistance on this.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 22:53:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233361#M79931</guid>
      <dc:creator>samant_thakur</dc:creator>
      <dc:date>2018-06-26T22:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233362#M79932</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/12679/samantthakur.html"&gt;Samant Thakur&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please shutdown on the journalnodes there seem to be an &lt;STRONG&gt;in_use.lock &lt;/STRONG&gt;file and restart and retry the format&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 23:20:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233362#M79932</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-26T23:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233363#M79933</link>
      <description>&lt;P&gt;Thank you so much @&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt; for your assistance as always.&lt;/P&gt;&lt;P&gt;I have restarted journal nodes but it did not help. Would it be nice if I delete all the the journal nodes and re add them again or completely delete hdfs services and install namenode and datanodes from scratch?&lt;/P&gt;&lt;P&gt;Please advise if you have any other better way to solve this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 02:08:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233363#M79933</guid>
      <dc:creator>samant_thakur</dc:creator>
      <dc:date>2018-06-27T02:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233364#M79934</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Samant Thakur"&gt;@Samant Thakur&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.hortonworks.com/users/12679/samantthakur.html"&gt;&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/12679/samantthakur.html"&gt;&lt;/A&gt;Did you remove the &lt;STRONG&gt;in_use.lock&lt;/STRONG&gt; and restart the namenodes?  How many &lt;STRONG&gt;journalnodes&lt;/STRONG&gt; and &lt;STRONG&gt;zookeepers&lt;/STRONG&gt; do have in your cluster?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 03:19:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233364#M79934</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-27T03:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233365#M79935</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;,  I have got 3 journal nodes and 3 zookeepers. I have removed the locks file &amp;amp; ran hdfs namenode -format. I noticed that &lt;EM&gt;&lt;STRONG&gt;in_use.lock &lt;/STRONG&gt;file&lt;STRONG&gt; &lt;/STRONG&gt;is being created by the namenode -format command. &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 03:26:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233365#M79935</guid>
      <dc:creator>samant_thakur</dc:creator>
      <dc:date>2018-06-27T03:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233366#M79936</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/199389/@Samant%20Thakur"&gt;@Samant Thakur&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Was the format successful?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 03:53:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233366#M79936</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-27T03:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233367#M79937</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;, Today, I have managed to format namenode successfully. One of the journal node's meta data  was not in sync with other two journal nodes. That 's the reason problematic journal node was getting locked every time when I was trying to format the name node. After copying data from good journal node's directory  to problematic journal node 's directory,allowed me to format namenode. I also deleted &lt;EM&gt;&lt;STRONG&gt;in_use.lock &lt;/STRONG&gt;files from all 3 journal nodes before executing&lt;STRONG&gt; hdfs namenode -format &lt;/STRONG&gt;command.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank you so much for your assistance on this.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 23:59:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233367#M79937</guid>
      <dc:creator>samant_thakur</dc:creator>
      <dc:date>2018-06-27T23:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to format Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233368#M79938</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/199389/@Samant%20Thakur"&gt;@Samant Thakur&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Good to know,g&lt;/EM&gt;&lt;I&gt;ive yourself the points &lt;/I&gt;&lt;I&gt;then close this thread.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 00:26:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-format-Namenode/m-p/233368#M79938</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-06-28T00:26:22Z</dc:date>
    </item>
  </channel>
</rss>

