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

NameNode load EditRecords throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.7.1
    • None
    • None
    • None

    Description

      this is mylog

      [2017-03-13T19:18:02.187+08:00] [ERROR] server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java 242) [main] : Encountered exception on operation TimesOp [length=0, path=/user/spark/log/application_1487848228144_0004, mtime=-1, atime=1489392253959, opCode=OP_TIMES, txid=26215]
      java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.FSDirAttrOp.unprotectedSetTimes(FSDirAttrOp.java:473)
      at org.apache.hadoop.hdfs.server.namenode.FSDirAttrOp.unprotectedSetTimes(FSDirAttrOp.java:299)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.applyEditLogOp(FSEditLogLoader.java:629)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:234)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadFSEdits(FSEditLogLoader.java:143)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.loadEdits(FSImage.java:837)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:692)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:294)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:980)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:686)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:589)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:649)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:816)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:800)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1498)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1564)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tangshangwen Wally Tang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: