Suggest increasing the timeouts for both dfs.socket.timeoutreading timeout and reading timeout. And dfs.datanode.socket.write.timeout, for recording timeout.
Default:
public static int READ_TIMEOUT = 60 * 1000;
public static int WRITE_TIMEOUT = 8 * 60 * 1000;
Add below to hadoop-site.xmlorhdfs-site.xml
<property>
<name>dfs.datanode.socket.write.timeout</name>
<value>3000000</value>
</property>
<property>
<name>dfs.socket.timeout</name>
<value>3000000</value>
</property>
Hope this helps.
source
share