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

fsck -move triggers NPE in namenode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.16.0
    • 0.18.0
    • None
    • None
    • hadoop-0.16 with dfs permissions disabled

    • Reviewed

    Description

      If I run hadoop fsck / -move, then the fsck fails to move any corrupt files. In the namenode logs, I see this error message repeated 3 times:

      2008-02-26 21:19:07,500 INFO org.apache.hadoop.ipc.Server: IPC Server handler 5 on 10000, call mkdirs(/lost+found, null) from x.x.x.135:60819: error: java.io.IOException: java.lang.NullPointerException
      java.io.IOException: java.lang.NullPointerException
      at org.apache.hadoop.dfs.INode.setPermission(INode.java:123)
      at org.apache.hadoop.dfs.INode.setPermissionStatus(INode.java:86)
      at org.apache.hadoop.dfs.INode.<init>(INode.java:79)
      at org.apache.hadoop.dfs.INodeDirectory.<init>(INode.java:319)
      at org.apache.hadoop.dfs.FSDirectory.mkdirs(FSDirectory.java:633)
      at org.apache.hadoop.dfs.FSNamesystem.mkdirsInternal(FSNamesystem.java:1569)
      at org.apache.hadoop.dfs.FSNamesystem.mkdirs(FSNamesystem.java:1544)
      at org.apache.hadoop.dfs.NameNode.mkdirs(NameNode.java:420)
      at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:409)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:910)
      2008-02-26 21:19:07,503 WARN org.apache.hadoop.dfs.NameNode: Cannot initialize /lost+found .

      Attachments

        1. HADOOP_2905.patch
          0.4 kB
          Lohit Vijaya Renu
        2. HADOOP-2905-1.patch
          5 kB
          Lohit Vijaya Renu

        Issue Links

          Activity

            People

              lohit Lohit Vijaya Renu
              bien Michael Bieniosek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: