Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: balancer & mover
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

            • Assignee:
              djp Junping Du
              Reporter:
              gujilangzi Wenwu Peng
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: