<?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: NN stopped and cannot recover with error &amp;quot;There appears to be a gap in the edit log&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3211#M555</link>
    <description>&lt;P&gt;Your edit log transactions are missing in the namenode metadata&amp;nbsp;directory....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"We expected txid 8364, but got txid 27381" ---this mean the edit logs/transactions from 8364 to 27381 are missing....If you don't want to loose the data restore the edit logs from back up metadata if you have or just point the namenode to&amp;nbsp;txid 27381, you may loose data if you point namenode to txid 27381.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2013 21:44:51 GMT</pubDate>
    <dc:creator>Manikumar Juttukonda</dc:creator>
    <dc:date>2013-11-14T21:44:51Z</dc:date>
    <item>
      <title>NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3181#M553</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I deployed a single node for CDH and CM for testing, however once I added some services like Hub, the NN stopped and cannot start it with eror:&amp;nbsp;There appears to be a gap in the edit log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2013-11-14 15:00:01,431 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system shutdown complete.
2013-11-14 15:00:01,432 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception in namenode join
java.io.IOException: There appears to be a gap in the edit log.  We expected txid 8364, but got txid 27381.
	at org.apache.hadoop.hdfs.server.namenode.MetaRecoveryContext.editLogLoaderPrompt(MetaRecoveryContext.java:94)
	at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:158)
	at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadFSEdits(FSEditLogLoader.java:92)
	at org.apache.hadoop.hdfs.server.namenode.FSImage.loadEdits(FSImage.java:744)
	at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:660)
	at org.apache.hadoop.hdfs.server.namenode.FSImage.doUpgrade(FSImage.java:349)
	at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:261)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:639)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:476)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:403)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:437)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:613)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:598)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1169)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1233)
2013-11-14 15:00:01,445 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2013-11-14 15:00:01,448 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at ubcdh/10.0.0.4
************************************************************/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tied to run "./bin/hadoop namenode -recover" however it was returned another error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;13/11/14 14:52:17 INFO hdfs.StateChange: STATE* Safe mode is ON.
Use "hdfs dfsadmin -safemode leave" to turn safe mode off.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However the command to leave safemode with error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;safemode: Call From ubcdh/10.0.0.4 to ubcdh:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:&amp;nbsp;&lt;A href="http://wiki.apache.org/hadoop/ConnectionRefused" target="_blank"&gt;http://wiki.apache.org/hadoop/ConnectionRefused&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All my services are running porperly and only one node configured, so I don't think the connection is in failure status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get this issue fixed?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:50:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3181#M553</guid>
      <dc:creator>JUNXIONG</dc:creator>
      <dc:date>2022-09-16T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3187#M554</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/1405"&gt;@JUNXIONG&lt;/a&gt;&amp;nbsp;I have moved this post to the HDFS discussion board since this is an HDFS specific issue. &amp;nbsp;Hopefully someone in here can assist you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2013 15:23:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3187#M554</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2013-11-14T15:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3211#M555</link>
      <description>&lt;P&gt;Your edit log transactions are missing in the namenode metadata&amp;nbsp;directory....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"We expected txid 8364, but got txid 27381" ---this mean the edit logs/transactions from 8364 to 27381 are missing....If you don't want to loose the data restore the edit logs from back up metadata if you have or just point the namenode to&amp;nbsp;txid 27381, you may loose data if you point namenode to txid 27381.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:44:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3211#M555</guid>
      <dc:creator>Manikumar Juttukonda</dc:creator>
      <dc:date>2013-11-14T21:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3229#M556</link>
      <description>Thank you Manikumar, I think I can understand what issue is now. So how that issue happen? What's the common causes of it?</description>
      <pubDate>Fri, 15 Nov 2013 03:36:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3229#M556</guid>
      <dc:creator>JUNXIONG</dc:creator>
      <dc:date>2013-11-15T03:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3275#M557</link>
      <description>&lt;P&gt;I think this happens when you try to format the namenode....&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 15:21:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/3275#M557</guid>
      <dc:creator>Manikumar Juttukonda</dc:creator>
      <dc:date>2013-11-15T15:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/26807#M558</link>
      <description>&lt;P&gt;Would someone be kind enough to describe the process of "just point the namenode to txid 27381"? I've been having this issue on a fresh HDFS cluster, and this sounds like an easy way to fix it.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 16:04:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/26807#M558</guid>
      <dc:creator>Mythobeast</dc:creator>
      <dc:date>2015-04-28T16:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/51360#M559</link>
      <description>&lt;P&gt;Hi, I have the same error, " we expected &amp;nbsp; txid xxxx , but got yyyy"&lt;BR /&gt;&lt;BR /&gt;How do I change the pointer of the namenode?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please advice.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 02:22:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/51360#M559</guid>
      <dc:creator>DinoWQ</dc:creator>
      <dc:date>2017-02-23T02:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/51361#M560</link>
      <description>&lt;P&gt;Hi Mythobeast,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you have the procedure to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 02:25:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/51361#M560</guid>
      <dc:creator>DinoWQ</dc:creator>
      <dc:date>2017-02-23T02:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: NN stopped and cannot recover with error "There appears to be a gap in the edit log"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/59733#M561</link>
      <description>&lt;P&gt;How to point namenode particular txid ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 07:28:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NN-stopped-and-cannot-recover-with-error-quot-There-appears/m-p/59733#M561</guid>
      <dc:creator>Teradata GTS</dc:creator>
      <dc:date>2017-09-09T07:28:14Z</dc:date>
    </item>
  </channel>
</rss>

