<?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 fix corrupt blocks in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107171#M70040</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10008/gxnan5.html" nodeid="10008"&gt;@Mon key&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please refer to below link that explains how to find corrupted blocks and fix them.&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/19205057/how-to-fix-corrupt-hadoop-hdfs" target="_blank"&gt;http://stackoverflow.com/questions/19205057/how-to-fix-corrupt-hadoop-hdfs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2016 11:56:01 GMT</pubDate>
    <dc:creator>ssubhas</dc:creator>
    <dc:date>2016-05-30T11:56:01Z</dc:date>
    <item>
      <title>How to fix corrupt blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107170#M70039</link>
      <description>&lt;P&gt;I make a cluster used ambari  included 1 namenode and 4 datanode on vmware. A datanode   was broken  ,so I deleted this one and created a new datanode .But cluster  created  CORRUPT blocks  .I try to "hdfs fsck -delete / " to fix it, but lost lots of data. how to fix corrupt blocks ?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7002i1F995C8FACBFE2C5/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="捕获.jpg" title="捕获.jpg" /&gt;</description>
      <pubDate>Mon, 30 May 2016 11:54:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107170#M70039</guid>
      <dc:creator>gxnan5</dc:creator>
      <dc:date>2016-05-30T11:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix corrupt blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107171#M70040</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10008/gxnan5.html" nodeid="10008"&gt;@Mon key&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please refer to below link that explains how to find corrupted blocks and fix them.&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/19205057/how-to-fix-corrupt-hadoop-hdfs" target="_blank"&gt;http://stackoverflow.com/questions/19205057/how-to-fix-corrupt-hadoop-hdfs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 11:56:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107171#M70040</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-05-30T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix corrupt blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107172#M70041</link>
      <description>&lt;P&gt;What is the replication factor defined, as 1 datanode down should not cause the corruption. Were other datanodes also down at the same time? &lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 12:03:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107172#M70041</guid>
      <dc:creator>nyadav</dc:creator>
      <dc:date>2016-05-30T12:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix corrupt blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107173#M70042</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10008/gxnan5.html" nodeid="10008"&gt;@Mon key&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The best way is to find which are corrupted blocks using below command -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; hdfs fsck /path/to/corrupt/file -locations -blocks -files&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And then try to manually remove this using "hadoop rm -r &amp;lt;/path&amp;gt;" to avoid dataloss.&lt;/P&gt;&lt;P&gt;But still fsck does not remove good copied of data blocks.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 12:15:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-fix-corrupt-blocks/m-p/107173#M70042</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-30T12:15:49Z</dc:date>
    </item>
  </channel>
</rss>

