<?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: Error while executing  hdfs fsck command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311358#M224611</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;This could be a known issue with HDFS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="cause"&gt;&lt;P&gt;The issue with fsck command was introduced in HDFS-2538 when fsck doesn't show dots by default. fsck uses http port, 9871, which has the 60 seconds timeout hardcoded. The issue is observed when the command executed for more than the configured timeout.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Use -showprogress parameter that can help you.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="instruction"&gt;&lt;PRE&gt;&lt;BR /&gt;# hdfs fsck / -showprogress&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Feb 2021 11:22:49 GMT</pubDate>
    <dc:creator>GangWar</dc:creator>
    <dc:date>2021-02-11T11:22:49Z</dc:date>
    <item>
      <title>Error while executing  hdfs fsck command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311345#M224601</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to execute hdfs fsck command and am getting below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@server1 root]# hdfs fsck / &amp;gt; /home/test/fsck_output_2-11-21&lt;BR /&gt;Connecting to namenode via &lt;A href="http://server1.com:50070/fsck?ugi=hdfs&amp;amp;path=%2F" target="_blank"&gt;http://server1.com:50070/fsck?ugi=hdfs&amp;amp;path=%2F&lt;/A&gt;&lt;BR /&gt;Exception in thread "main" java.net.SocketTimeoutException: Read timed out&lt;BR /&gt;at java.net.SocketInputStream.socketRead0(Native Method)&lt;BR /&gt;at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)&lt;BR /&gt;at java.net.SocketInputStream.read(SocketInputStream.java:171)&lt;BR /&gt;at java.net.SocketInputStream.read(SocketInputStream.java:141)&lt;BR /&gt;at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)&lt;BR /&gt;at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)&lt;BR /&gt;at java.io.BufferedInputStream.read(BufferedInputStream.java:345)&lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.parseHTTPHeader(HttpClient.java:704" target="_blank"&gt;www.http.HttpClient.parseHTTPHeader(HttpClient.java:704&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.http.HttpClient.parseHTTP(HttpClient.java:647" target="_blank"&gt;www.http.HttpClient.parseHTTP(HttpClient.java:647&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569" target="_blank"&gt;www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569&lt;/A&gt;)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474" target="_blank"&gt;www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474&lt;/A&gt;)&lt;BR /&gt;at org.apache.hadoop.hdfs.tools.DFSck.doWork(DFSck.java:363)&lt;BR /&gt;at org.apache.hadoop.hdfs.tools.DFSck.access$000(DFSck.java:72)&lt;BR /&gt;at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:161)&lt;BR /&gt;at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:158)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)&lt;BR /&gt;at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:157)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)&lt;BR /&gt;at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:406)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;wert&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:40:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311345#M224601</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2022-09-16T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while executing  hdfs fsck command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311358#M224611</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;This could be a known issue with HDFS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="cause"&gt;&lt;P&gt;The issue with fsck command was introduced in HDFS-2538 when fsck doesn't show dots by default. fsck uses http port, 9871, which has the 60 seconds timeout hardcoded. The issue is observed when the command executed for more than the configured timeout.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Use -showprogress parameter that can help you.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="instruction"&gt;&lt;PRE&gt;&lt;BR /&gt;# hdfs fsck / -showprogress&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Feb 2021 11:22:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311358#M224611</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-02-11T11:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while executing  hdfs fsck command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311467#M224681</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp; Thanks !!! that works&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 02:31:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/311467#M224681</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2021-02-15T02:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error while executing  hdfs fsck command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/321569#M228450</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp; Thank you for the solution but when I use this comman:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;&lt;STRONG&gt;hdfs fsck / -showprogress&lt;/STRONG&gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;It shows all the corrupted blocks but not delete these block I check the blocks status form my CM UI its still the same. I run this command for 2 hours but none of missing block is delete.&lt;BR /&gt;When I use this Command:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;EM&gt;hdfs fsck / | egrep -v '^\.+$' | grep -v replica&lt;/EM&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;EM&gt;&lt;STRONG&gt;hdfs fsck / -delete&lt;/STRONG&gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;Its give the same error that highlighted by &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt; in the above post. First time this commands works and it delete some blocks but after some time I am facing this issue while running this command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I am attaching the snapshot&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/31968iB1CCB29ABA27F5F8/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="Screenshot 2021-07-26 170755.png" title="Screenshot 2021-07-26 170755.png" /&gt;</description>
      <pubDate>Mon, 26 Jul 2021 12:09:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/321569#M228450</guid>
      <dc:creator>USMAN_HAIDER</dc:creator>
      <dc:date>2021-07-26T12:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error while executing  hdfs fsck command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/321826#M228572</link>
      <description>This seems a Connection time out to the name node so you may want to check if there is any Network issue or something else going on with CM's help. That should give you some clue.</description>
      <pubDate>Fri, 30 Jul 2021 13:58:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-executing-hdfs-fsck-command/m-p/321826#M228572</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-07-30T13:58:49Z</dc:date>
    </item>
  </channel>
</rss>

