Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1458

Upgrade from 0.13 (pre HADOOP-1242) to 0.13 (post HADOOP-1242) does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      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?

        Attachments

        1. patch-namenode-1292
          0.3 kB
          Owen O'Malley

          Activity

            People

            • Assignee:
              owen.omalley Owen O'Malley
              Reporter:
              owen.omalley Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: