On Wed, Jan 12, 2011 at 10:54 PM, charan kumar <[email protected]> wrote: > Hi Stak, > > We user hadoop-0.20.2 . I applied the patch HDFS-630 this morning, didnt > help.
You ever consider running the apache 0.20-append branch or CDH? Both have a bunch of fixes to HDFS above 0.20.2 Hadoop. > This is what I see before the line.. The file names might be little > different , I am collecting from different failures. > > 2011-01-12 07:01:32,336 WARN org.apache.hadoop.hdfs.DFSClient: DFS Read: > java.io.IOException: Cannot open filename > /hbase/webtable/689554504/qa/8995572027002 > 725486 > at Does it say WHY it can't open the file? In 0.20.6 era HBase, this could have been double assignment (In 0.20.x, there were little holes where we could end up giving the same region out to two different regionservers). Assignment A starts up a compaction and removes old files replacing them with new. Assignment B references the files -- perhaps to start its own compaction but they are removed. Where do you see the 'Cannot open filename'? Is that on open/deploy of the region or later when we go to compact? To find double assignment grep the region (encoded) name in the master logs. You might have to take encoded name, find actual name (in 0.20.x HBase IIRC), and then grep the actual region name to find the dbl-assign (Grep w/ encoded name and you'll find a line which has original and encoded name on same line, then go w/ found region name). .... > Also I compiled the following log entries from Name Node , when the region > server shutsdown because of this exception. Hope this helps too. > > 11/01/12 19:45:43 INFO hdfs.StateChange: BLOCK* NameSystem.allocateBlock: > /hbase/webtable/compaction.dir/1326275218/2628290592728420519. > blk_-7100767084720175376_361638 > > 11/01/12 19:45:48 INFO hdfs.StateChange: BLOCK* NameSystem.addStoredBlock: > addStoredBlock request received for blk_-7100767084720175376_361638 on > 10.76.99.68:50010 size 23874613 But it does not belong to any file. > 11/01/12 19:45:48 INFO hdfs.StateChange: BLOCK* NameSystem.addStoredBlock: > addStoredBlock request received for blk_-7100767084720175376_361638 on > 10.76.99.57:50010 size 23874613 But it does not belong to any file. > 11/01/12 19:45:48 INFO hdfs.StateChange: BLOCK* NameSystem.addStoredBlock: > addStoredBlock request received for blk_-7100767084720175376_361638 on > 10.76.99.114:50010 size 23874613 But it does not belong to any file. > > If you grep this message in HDFS source, you see that it seems to be part of 'normal' processing. The block is just added to the set of invalid blocks (The message is logged 'INFO' level). > 11/01/12 19:45:48 WARN hdfs.StateChange: DIR* NameSystem.completeFile: > failed to complete > /hbase/webtable/compaction.dir/1326275218/2628290592728420519 because > dir.getFileBlocks() is null and pendingFile is null > > 11/01/12 19:45:48 INFO ipc.Server: IPC Server handler 54 on 8020, call > complete(/hbase/webtable/compaction.dir/1326275218/2628290592728420519, > DFSClient_880037874) from 1XX.XX.XX.XXXX :55925: error: java.io.IOException: > Could not complete write to file > /hbase/webtable/compaction.dir/1326275218/2628290592728420519 by > DFSClient_880037874 > java.io.IOException: Could not complete write to file > /hbase/webtable/compaction.dir/1326275218/2628290592728420519 by > DFSClient_880037874 Is this the only history on this file in NameNode log, or rather, on the compaction.dir for this region in NameNode? St.Ack
