<?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 cluster with active standby namenode + gap in the edit log in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/383096#M244816</link>
    <description>&lt;P&gt;is the following procedure can help also?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Put Active NN in safemode&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -safemode enter&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do a savenamespace operation on Active NN&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -saveNamespace&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Leave Safemode&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -safemode leave&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Login to Standby NN&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run below command on Standby namenode to get latest fsimage that we saved in above steps.&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs namenode -bootstrapStandby -force&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2024 22:17:36 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2024-02-03T22:17:36Z</dc:date>
    <item>
      <title>hadoop cluster with active standby namenode + gap in the edit log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/310047#M224002</link>
      <description>&lt;P&gt;we have ambari cluster , HDP version `2.6.5`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cluster include management of two name-node ( one is active and the secondary is standby )&lt;/P&gt;&lt;P&gt;and 65 datanode machines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have problem with the standby name-node that not started and from the namenode logs we can see the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-01-01 15:19:43,269 ERROR namenode.NameNode (NameNode.java:main(1783)) - Failed to start namenode.&lt;BR /&gt;java.io.IOException: There appears to be a gap in the edit log. We expected txid 90247527115, but got txid 90247903412.&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.MetaRecoveryContext.editLogLoaderPrompt(MetaRecoveryContext.java:94)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:215)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for now the active namenode is up but the standby name node is down&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regarding to&lt;/P&gt;&lt;P&gt;java.io.IOException: There appears to be a gap in the edit log. We expected txid 90247527115, but got txid 90247903412.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the preferred solution to fix this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 524px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30174i3B05A67CE40E64F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 17:10:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/310047#M224002</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2021-01-19T17:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop cluster with active standby namenode + gap in the edit log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/310352#M224119</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;There is a solution which can help. R&lt;SPAN&gt;un the following command on the Standby NameNode:&lt;BR /&gt;# su hdfs -l -c 'hdfs namenode -recover'&lt;BR /&gt;&lt;BR /&gt;Following message can be seen:&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class="crayon-e"&gt;You &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;have &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;selected &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;Metadata &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;Recovery &lt;/SPAN&gt;&lt;SPAN class="crayon-v"&gt;mode&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;.&lt;/SPAN&gt;&lt;SPAN class="crayon-h"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="crayon-r"&gt;This&lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;mode &lt;/SPAN&gt;&lt;SPAN class="crayon-st"&gt;is&lt;/SPAN&gt; &lt;SPAN class="crayon-e"&gt;intended &lt;/SPAN&gt;&lt;SPAN class="crayon-st"&gt;to&lt;/SPAN&gt; &lt;SPAN class="crayon-e"&gt;recover&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class="crayon-e"&gt;lost &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;metadata &lt;/SPAN&gt;&lt;SPAN class="crayon-i"&gt;on&lt;/SPAN&gt; &lt;SPAN class="crayon-i"&gt;a&lt;/SPAN&gt; &lt;SPAN class="crayon-e"&gt;corrupt &lt;/SPAN&gt;&lt;SPAN class="crayon-v"&gt;filesystem&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;.&lt;/SPAN&gt;&lt;SPAN class="crayon-h"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;Metadata &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;recovery &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;mode &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;often&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class="crayon-e"&gt;permanently &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;deletes &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;data &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;from &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;your &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;HDFS &lt;/SPAN&gt;&lt;SPAN class="crayon-v"&gt;filesystem&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;.&lt;/SPAN&gt;&lt;SPAN class="crayon-h"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;Please &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;back &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;up &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;your &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;edit&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class="crayon-e"&gt;log &lt;/SPAN&gt;&lt;SPAN class="crayon-st"&gt;and&lt;/SPAN&gt; &lt;SPAN class="crayon-e"&gt;fsimage &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;before &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;trying &lt;/SPAN&gt;&lt;SPAN class="crayon-r"&gt;this&lt;/SPAN&gt;&lt;SPAN class="crayon-o"&gt;!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="crayon-e"&gt;Are &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;you &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;ready &lt;/SPAN&gt;&lt;SPAN class="crayon-st"&gt;to&lt;/SPAN&gt; &lt;SPAN class="crayon-v"&gt;proceed&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;?&lt;/SPAN&gt; &lt;SPAN class="crayon-sy"&gt;(&lt;/SPAN&gt;&lt;SPAN class="crayon-v"&gt;Y&lt;/SPAN&gt;&lt;SPAN class="crayon-o"&gt;/&lt;/SPAN&gt;&lt;SPAN class="crayon-v"&gt;N&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN class="crayon-sy"&gt;(&lt;/SPAN&gt;&lt;SPAN class="crayon-i"&gt;Y&lt;/SPAN&gt; &lt;SPAN class="crayon-st"&gt;or&lt;/SPAN&gt; &lt;SPAN class="crayon-v"&gt;N&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To proceed further, select option "yes", the recovery process will read as much of the edit log as possible. When there is an error or an ambiguity, it will prompt how to proceed. There will be further options prompted as &lt;STRONG&gt;Continue&lt;/STRONG&gt;, &lt;STRONG&gt;Stop&lt;/STRONG&gt;, &lt;STRONG&gt;Quit&lt;/STRONG&gt;, and &lt;STRONG&gt;Always.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Mostly the data loss ( due to transaction skip/miss ) is possible when using this method.&lt;BR /&gt;This method is therefore not to be used, if&amp;nbsp; data/transaction losses has to be avoided.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 10:29:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/310352#M224119</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-01-25T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop cluster with active standby namenode + gap in the edit log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/383096#M244816</link>
      <description>&lt;P&gt;is the following procedure can help also?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Put Active NN in safemode&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -safemode enter&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do a savenamespace operation on Active NN&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -saveNamespace&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Leave Safemode&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -safemode leave&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Login to Standby NN&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run below command on Standby namenode to get latest fsimage that we saved in above steps.&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs namenode -bootstrapStandby -force&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 22:17:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/383096#M244816</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2024-02-03T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: hadoop cluster with active standby namenode + gap in the edit log</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/383981#M245190</link>
      <description>&lt;P&gt;Yes &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp; above steps also works&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 08:29:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hadoop-cluster-with-active-standby-namenode-gap-in-the-edit/m-p/383981#M245190</guid>
      <dc:creator>9een</dc:creator>
      <dc:date>2024-02-27T08:29:43Z</dc:date>
    </item>
  </channel>
</rss>

