Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-87

NameNode startup fails if edit log terminates prematurely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None
    • ~50 node cluster

    Description

      I ran out of space on the device that stores the edit log, resulting in an edit log that is truncated mid transaction.

      Ideally, the NameNode should start up, in SafeMode or the like, whenever this happens. Right now, you get this stack trace:

      2006-12-12 15:33:57,212 ERROR org.apache.hadoop.dfs.NameNode: java.io.EOFExcepti
      on
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:310)
      at org.apache.hadoop.io.UTF8.readFields(UTF8.java:104)
      at org.apache.hadoop.dfs.FSEditLog.loadFSEdits(FSEditLog.java:227)
      at org.apache.hadoop.dfs.FSImage.loadFSImage(FSImage.java:191)
      at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:320)
      at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:226)
      at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:146)
      at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:138)
      at org.apache.hadoop.dfs.NameNode.main(NameNode.java:589)

      Attachments

        1. fixNameNodeStartup.patch
          0.6 kB
          Bryan Pendleton

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bpendleton Bryan Pendleton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: