Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Terribly long HDFS timeouts while appending to HLog

Copy link to this message
Terribly long HDFS timeouts while appending to HLog

I am seeing extremely long HDFS timeouts - and this seems to be associated
with the loss of a DataNode. Here is the RS log:

12/11/07 02:17:45 WARN hdfs.DFSClient: DFSOutputStream ResponseProcessor
exception  for block blk_2813460962462751946_78454java.io.IOException: Bad
response 1 for block blk_2813460962462751946_78454 from datanode

12/11/07 02:17:45 WARN hdfs.DFSClient: Error Recovery for block
blk_2813460962462751946_78454 bad datanode[1]
12/11/07 02:17:45 WARN hdfs.DFSClient: Error Recovery for block
blk_2813460962462751946_78454 in pipeline,, bad datanode
12/11/07 02:17:45 WARN wal.HLog: IPC Server handler 35 on 60020 took 65955
ms appending an edit to hlog; editcount=476686, len~=76.0
12/11/07 02:17:45 WARN wal.HLog: HDFS pipeline error detected. Found 2
replicas but expecting no less than 3 replicas.  Requesting close of hlog.

The corresponding DN log goes like this

2012-11-07 02:17:45,142 INFO
org.apache.hadoop.hdfs.server.datanode.DataNode (PacketResponder 2 for
Block blk_2813460962462751946_78454): PacketResponder
blk_2813460962462751946_78454 2 Exception java.net.SocketTimeoutException:
66000 millis timeout while waiting for channel to be ready for read. ch :
java.nio.channels.SocketChannel[connected local=/]
        at java.io.DataInputStream.readFully(DataInputStream.java:178)
        at java.io.DataInputStream.readLong(DataInputStream.java:399)
        at java.lang.Thread.run(Thread.java:662)

It seems like the DataNode local to the region server is trying to grab the
block from another DN and that is timing out because of this other data
node being bad. All in all this causes response times to be terribly poor.
Is there a way around this or am I missing something ?

Nicolas Liochon 2012-11-07, 09:56
Jeremy Carroll 2012-11-07, 15:22
Jeremy Carroll 2012-11-07, 15:25
Varun Sharma 2012-11-07, 17:57
David Charle 2012-11-07, 18:21
Jeremy Carroll 2012-11-07, 19:52
Jeremy Carroll 2012-11-07, 19:53
Varun Sharma 2012-11-07, 21:52