Configuring HDFS File System Check read timeout
When running HDFS File System Check (hdfs fsck) commands on large
clusters or directories with a high volume of corrupt blocks, the command may fail with a
java.net.SocketTimeoutException: Read timed out error. This error
occurs when the default client timeout period is insufficient for the NameNode to process
the request and return results. You can prevent these timeouts by manually configuring the
dfs.client.fsck.read.timeout property in Cloudera Manager.
Commands such as hdfs fsck / -list-corruptfileblocks or hdfs fsck / -delete fail with the following exception:
Exception in thread "main" java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
...
at org.apache.hadoop.hdfs.tools.DFSck.doWork(DFSck.java:381)
To resolve this issue, configure dfs.client.fsck.read.timeout property and increase the read timeout.
