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

Name-node fails to start because DatanodeInfo format changed.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.18.0
    • 0.18.0
    • None
    • None

    Description

      HADOOP-3283 introduced a new field ipcPort in DatanodeInfo, which was not reflected in the reading/writing file system image files.
      Particularly, reading edits generated by the previous version of hadoop throws the following exception:

      08/05/02 00:02:50 ERROR dfs.NameNode: java.lang.IllegalArgumentException: No enum const class org.apache.hadoop.dfs.DatanodeInfo$AdminStates.0?
      /56.313
      	at java.lang.Enum.valueOf(Enum.java:192)
      	at org.apache.hadoop.io.WritableUtils.readEnum(WritableUtils.java:399)
      	at org.apache.hadoop.dfs.DatanodeInfo.readFields(DatanodeInfo.java:318)
      	at org.apache.hadoop.io.ArrayWritable.readFields(ArrayWritable.java:90)
      	at org.apache.hadoop.dfs.FSEditLog.loadFSEdits(FSEditLog.java:499)
      	at org.apache.hadoop.dfs.FSImage.loadFSEdits(FSImage.java:794)
      	at org.apache.hadoop.dfs.FSImage.loadFSImage(FSImage.java:664)
      	at org.apache.hadoop.dfs.FSImage.recoverTransitionRead(FSImage.java:280)
      	at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:81)
      	at org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:276)
      	at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:257)
      	at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:133)
      	at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:178)
      	at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:164)
      	at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:777)
      	at org.apache.hadoop.dfs.NameNode.main(NameNode.java:786)
      

      and startup fails.

      Attachments

        1. 3337_20080501.patch
          3 kB
          Tsz-wo Sze
        2. 3337_20080501b.patch
          4 kB
          Tsz-wo Sze
        3. 3337_20080502.patch
          7 kB
          Tsz-wo Sze
        4. 3337_20080502b.patch
          8 kB
          Tsz-wo Sze

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            szetszwo Tsz-wo Sze
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment