Some problems encountered in Hadoop and ways to go about solving them.

NameNode startup fails

Exception when initializing the filesystem

{{{ERROR org.apache.hadoop.dfs.NameNode: java.io.EOFException

This is sometimes encountered if there is a corruption of the edits file in the transaction log. Try using a hex editor or equivalent to open up 'edits' and get rid of the last record. In all cases, the last record might not be complete so your NameNode is not starting. Once you update your edits, start the NameNode and run hadoop fsck / to see if you have any corrupt files and fix/get rid of them.

Take a back up of dfs.name.dir before updating and playing around with it.

Client cannot talk to filesystem

TCP Level Error Messages

Error message: Could not get block locations. Aborting...

There are number of possible of causes for this.

Error message: Could not obtain block

Your logs contain something like {{{INFO hdfs.DFSClient: Could not obtain block blk_-4157273618194597760_1160

There are no live datanodes containing a copy of the block of the file you are looking for. Bring up any nodes that are down, or skip that block.

Reduce hangs

This can be a DNS issue. Two problems which have been encountered in practice are:

TroubleShooting (last edited 2009-09-20 23:54:46 by localhost)