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

Trying to start the balancer throws a NPE

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • None
    • None
    • Reviewed

    Description

      When trying to run the balancer, I get a NullPointerException:

      2009-11-10 11:08:14,235 ERROR org.apache.hadoop.hdfs.server.balancer.Balancer: java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.BlockPlacementPolicy.getInstance(BlockPlacementPolicy.java:161)
      at org.apache.hadoop.hdfs.server.balancer.Balancer.checkReplicationPolicyCompatibility(Balancer.java:784)
      at org.apache.hadoop.hdfs.server.balancer.Balancer.<init>(Balancer.java:792)
      at org.apache.hadoop.hdfs.server.balancer.Balancer.main(Balancer.java:814)

      This happens when trying to use bin/start-balancer or bin/hdfs balancer -threshold 10

      The config files (hdfs-site and core-site) have as fs.default.name hdfs://namenode:9000.

      Attachments

        1. 0001-corrected-balancer-constructor.patch
          5 kB
          Cristian Ivascu
        2. HDFS-762.patch
          4 kB
          Cristian Ivascu

        Activity

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

          People

            civascu Cristian Ivascu
            civascu Cristian Ivascu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment