Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.13.0
-
None
-
None
Description
When you convert a 0.13 NameNode storage directory from pre to post HADOOP-1242, the NameNode won't start. You'll get:
07/06/04 00:10:51 ERROR dfs.NameNode: org.apache.hadoop.dfs.InconsistentFSStateException: Directory /data/hadoop/dfs/name is in an inconsistent state: /data/hadoop/dfs/name/image does not exist. at org.apache.hadoop.dfs.FSImage.isConversionNeeded(FSImage.java:439) at org.apache.hadoop.dfs.Storage$StorageDirectory.analyzeStorage(Storage.java:263) at org.apache.hadoop.dfs.FSImage.recoverTransitionRead(FSImage.java:149) at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:347) at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:251) at org.apache.hadoop.dfs.NameNode.init(NameNode.java:173) at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:211) at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:806) at org.apache.hadoop.dfs.NameNode.main(NameNode.java:814)
because the "bad" image file isn't created later in the startup. Since this is only a non-release issue, I don't know if we need to fix it programatically or can just provide an upgrade script. Thoughts?