<?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: how to identify  edits_inprogress_xxxxxxx corrupted file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217465#M72427</link>
    <description>&lt;P&gt;@Jay excellent answer , &lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2017 18:29:19 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-12-06T18:29:19Z</dc:date>
    <item>
      <title>how to identify  edits_inprogress_xxxxxxx corrupted file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217461#M72423</link>
      <description>&lt;P&gt;we noticed that&lt;STRONG&gt; edits_inprogress_xxxxxxxx &lt;/STRONG&gt;corrupted file (under&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;/hadoop/hdfs/journal/hdfsha/current&lt;/STRONG&gt;) , could be the reason why name--node not start correctly or start as standby and not as active&lt;/P&gt;&lt;P&gt;so I just share with you this issue , and I want to find little verification how to identify &lt;STRONG&gt;edits_inprogress_xxxxxxxx&lt;/STRONG&gt; corrupted file&lt;/P&gt;&lt;P&gt;I found the following way but I need hortonworks approval for this verification  &lt;/P&gt;&lt;P&gt;my opinion is to use the file command , when file command return "data" then file is ok&lt;/P&gt;&lt;P&gt;else , then &lt;STRONG&gt;edits_inprogress_xxxxxxxx&lt;/STRONG&gt; corrupted is corrupted&lt;/P&gt;&lt;P&gt;can we trust on this verification ?&lt;/P&gt;&lt;PRE&gt;file edits_inprogress_0000000000075117774
edits_inprogress_0000000000075117774: ISO-8859 text, with very long lines, with no line terminators 

# file edits_inprogress_0000000000075149670
edits_inprogress_0000000000075149670: data&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2017 17:53:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217461#M72423</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-06T17:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify  edits_inprogress_xxxxxxx corrupted file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217462#M72424</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;There is no standard way to determine the Corruption of edits_inprogress_xxxx files.   But usually we get the indication of it's corruption by looking at the Journal Node / NameNode logs.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Brief of &lt;STRONG&gt;edits_inprogress__start transaction ID&lt;/STRONG&gt;– This is the current edit log in progress. All transactions starting fromare in this file, and all new incoming transactions will get appended to this file. HDFS pre-allocates space in this file in 1 MB chunks for efficiency, and then fills it with incoming transactions. You’ll probably see this file’s size as a multiple of 1 MB. When HDFS finalizes the log segment, it truncates the unused portion of the space that doesn’t contain any transactions, so the finalized file’s space will shrink down.&lt;/P&gt;&lt;P&gt;More details about these files and it's functionality can be found at:  &lt;A href="https://hortonworks.com/blog/hdfs-metadata-directories-explained/" target="_blank"&gt;https://hortonworks.com/blog/hdfs-metadata-directories-explained/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:03:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217462#M72424</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-06T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify  edits_inprogress_xxxxxxx corrupted file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217463#M72425</link>
      <description>&lt;P&gt;what we need to focus/capture on the log in order to get the feeling that file is corepted|? &lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:10:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217463#M72425</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-06T18:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify  edits_inprogress_xxxxxxx corrupted file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217464#M72426</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Usually we see some edite_inprogress scaning warning messages in the log which indicates some kind of corruption in the "edits_inprogress" file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:  (&lt;/STRONG&gt;most common example in case of 90% of times the during corruption).&lt;/P&gt;&lt;PRE&gt;WARN namenode.FSImage (EditLogFileInputStream.java:scanEditLog(364)) - After resync, position is 552231
WARN namenode.FSImage (EditLogFileInputStream.java:scanEditLog(359)) - Caught exception after scanning through 0 ops from /hadoop/hdfs/journal/haclusterName/current/edits_inprogress_0000000000512299614 while determining its valid length. Position was 552231  java.io.IOException: Can't scan a pre-transactional edit log. 
&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:22:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217464#M72426</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-12-06T18:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify  edits_inprogress_xxxxxxx corrupted file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217465#M72427</link>
      <description>&lt;P&gt;@Jay excellent answer , &lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:29:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-identify-edits-inprogress-xxxxxxx-corrupted-file/m-p/217465#M72427</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-06T18:29:19Z</dc:date>
    </item>
  </channel>
</rss>

