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

FSNamesystem.startFileInternal(..) throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0, 0.23.0
    • namenode
    • None
    • Reviewed

    Description

      I'm observing when there is one balancer running trying to run another one results in
      "Java.lang.NullPointerException" error. I was hoping to see message "Another balancer is running.
      Exiting.... Exiting ...". This is a reproducible issue.

      Details
      ========

      1) Cluster ->elrond

      [hdfs@]$ hadoop version

      2) Run first balancer
      [hdfs]$ hdfs balancer
      1
      through XX.XX.XX.XX:1004 is succeeded.
      [hdfs@]$ hdfs balancer
      11/03/09 16:34:32 INFO balancer.Balancer: namenodes =
      java.io.IOException: java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1400)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFile(FSNamesystem.java:1284)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.create(NameNode.java:779)
      at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:346)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1399)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1395)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1094)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1393)
      . Exiting ...
      Balancing took 1.366 seconds

      Attachments

        1. HDFS-1782.patch
          0.8 kB
          John George

        Activity

          People

            johnvijoe John George
            johnvijoe John George
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: