<?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: Fsck command error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2845#M489</link>
    <description>&lt;P&gt;Very sorry for not responding earlier even though the solution given by you had sorted out my problem and fsck ran without any&lt;/P&gt;&lt;P&gt;errors and reported healthy cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only grievance is why should Cloudera manager show a RED icon and inform us of unreplicated blocks even though the machine is single.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Another reason for not responding earlier is that the Cloudera forum requires at least eight letter password with a combination of letters and digits. That makes remembering password more difficult unlike other forums. I had to create a password each time I logged in. This time I have stored it on my machine. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2013 10:20:13 GMT</pubDate>
    <dc:creator>AKH</dc:creator>
    <dc:date>2013-11-03T10:20:13Z</dc:date>
    <item>
      <title>Fsck command error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2653#M487</link>
      <description>&lt;P&gt;Cloudera manager is showing Bad health status for hdfs. For ridding hadoop of corrupt files, I gave fsck command.&lt;/P&gt;&lt;P&gt;The command was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ hadoop fsck / -delete&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This command was issued as user 'hdfs'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the command ends with an internal error message as below:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Status: CORRUPT&lt;BR /&gt;&amp;nbsp;Total size:&amp;nbsp;&amp;nbsp; &amp;nbsp;1723577901 B&lt;BR /&gt;&amp;nbsp;Total dirs:&amp;nbsp;&amp;nbsp; &amp;nbsp;76&lt;BR /&gt;&amp;nbsp;Total files:&amp;nbsp;&amp;nbsp; &amp;nbsp;123 (Files currently being written: 1)&lt;BR /&gt;&amp;nbsp;Total blocks (validated):&amp;nbsp;&amp;nbsp; &amp;nbsp;126 (avg. block size 13679189 B)&lt;BR /&gt;&amp;nbsp; ********************************&lt;BR /&gt;&amp;nbsp; CORRUPT FILES:&amp;nbsp;&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;&amp;nbsp; CORRUPT BLOCKS: &amp;nbsp;&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;&amp;nbsp; ********************************&lt;BR /&gt;&amp;nbsp;Minimally replicated blocks:&amp;nbsp;&amp;nbsp; &amp;nbsp;126 (100.0 %)&lt;BR /&gt;&amp;nbsp;Over-replicated blocks:&amp;nbsp;&amp;nbsp; &amp;nbsp;0 (0.0 %)&lt;BR /&gt;&amp;nbsp;Under-replicated blocks:&amp;nbsp;&amp;nbsp; &amp;nbsp;126 (100.0 %)&lt;BR /&gt;&amp;nbsp;Mis-replicated blocks:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0 (0.0 %)&lt;BR /&gt;&amp;nbsp;Default replication factor:&amp;nbsp;&amp;nbsp; &amp;nbsp;3&lt;BR /&gt;&amp;nbsp;Average block replication:&amp;nbsp;&amp;nbsp; &amp;nbsp;1.0&lt;BR /&gt;&amp;nbsp;Corrupt blocks:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;&amp;nbsp;Missing replicas:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;252 (66.666664 %)&lt;BR /&gt;&amp;nbsp;Number of data-nodes:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;&amp;nbsp;Number of racks:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;FSCK ended at Sun Oct 27 12:21:49 IST 2013 in 35 milliseconds&lt;BR /&gt;FSCK ended at Sun Oct 27 12:21:49 IST 2013 in 36 milliseconds&lt;BR /&gt;&lt;STRONG&gt;fsck encountered internal errors!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Fsck on path '/' FAILED&lt;/STRONG&gt;&lt;BR /&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do? I am using&amp;nbsp;&lt;EM&gt;Cloudera Standard 4.6.3 (#192 built by jenkins on 20130812-1221 git: fa61cf8559fbefeb5af7f223fd02164d1a0adfdb)&lt;/EM&gt;&amp;nbsp; on a 16GB RAM &lt;STRONG&gt;single&lt;/STRONG&gt; CentOS machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will be grateful for help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:49:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2653#M487</guid>
      <dc:creator>AKH</dc:creator>
      <dc:date>2022-09-16T08:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fsck command error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2693#M488</link>
      <description>&lt;P&gt;When you are running on a single machine, you must set the "replication" factor (dfs.replication) to 1, since the default is 3 and there are not 3 datanodes in your cluster, HDFS will just sit there trying to replicate blocks that it cannot. &amp;nbsp;See below from your fsck output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Default replication factor: 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under-replicated blocks: 126 (100.0 %)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you restart the cluster with replication set to one, &amp;nbsp;the cluster should report healthy again.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:54:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2693#M488</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2013-10-28T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fsck command error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2845#M489</link>
      <description>&lt;P&gt;Very sorry for not responding earlier even though the solution given by you had sorted out my problem and fsck ran without any&lt;/P&gt;&lt;P&gt;errors and reported healthy cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only grievance is why should Cloudera manager show a RED icon and inform us of unreplicated blocks even though the machine is single.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Another reason for not responding earlier is that the Cloudera forum requires at least eight letter password with a combination of letters and digits. That makes remembering password more difficult unlike other forums. I had to create a password each time I logged in. This time I have stored it on my machine. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2013 10:20:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fsck-command-error/m-p/2845#M489</guid>
      <dc:creator>AKH</dc:creator>
      <dc:date>2013-11-03T10:20:13Z</dc:date>
    </item>
  </channel>
</rss>

