Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0.0-alpha
-
None
-
Reviewed
Description
Joris Bontje reports the following:
The following command results in a corrupt NN editlog (note the double slash and reading from stdin):
$ cat /usr/share/dict/words | hadoop fs -put - hdfs://localhost:8020//path/file
After this, restarting the namenode will result into the following fatal exception:
2012-07-10 06:29:19,910 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Reading /var/lib/hadoop-hdfs/cache/hdfs/dfs/name/current/edits_0000000000000000173-0000000000000000188 expecting start txid #173
2012-07-10 06:29:19,912 ERROR org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader: Encountered exception on operation MkdirOp [length=0, path=/, timestamp=1341915658216, permissions=cloudera:supergroup:rwxr-xr-x, opCode=OP_MKDIR, txid=182]
java.lang.ArrayIndexOutOfBoundsException: -1
Attachments
Attachments
Issue Links
- relates to
-
HDFS-3821 Backport HDFS-3626 to branch-1 (Creating file with invalid path can corrupt edit log)
- Resolved