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

start balancer failed with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • balancer & mover
    • None
    • Reviewed

    Description

      start balancer failed with NPE
      File this issue to track for QE and dev take a look

      balancer.log:
      2013-03-06 00:19:55,174 ERROR org.apache.hadoop.hdfs.server.balancer.Balancer: java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.BlockPlacementPolicy.getInstance(BlockPlacementPolicy.java:165)
      at org.apache.hadoop.hdfs.server.balancer.Balancer.checkReplicationPolicyCompatibility(Balancer.java:799)
      at org.apache.hadoop.hdfs.server.balancer.Balancer.<init>(Balancer.java:808)
      at org.apache.hadoop.hdfs.server.balancer.Balancer.main(Balancer.java:831)

      Balancer.java
      private void checkReplicationPolicyCompatibility(Configuration conf)
      throws UnsupportedActionException

      { if (!(BlockPlacementPolicy.getInstance(conf, null, null) <== here instanceof BlockPlacementPolicyDefault)) { throw new UnsupportedActionException( "Balancer without BlockPlacementPolicyDefault"); }

      }

      Attachments

        1. HDFS-4558.patch
          0.8 kB
          Junping Du
        2. HDFS-4558-v2.patch
          1 kB
          Junping Du
        3. HDFS-4558-v3.patch
          1 kB
          Junping Du

        Activity

          People

            junping_du Junping Du
            gujilangzi Wenwu Peng
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: