hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junping Du (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4558) start balancer failed with NPE
Date Thu, 07 Mar 2013 16:22:13 GMT

     [ https://issues.apache.org/jira/browse/HDFS-4558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Junping Du updated HDFS-4558:
-----------------------------

    Attachment: HDFS-4558-v2.patch

Update as Nicholas suggestion in v2 patch. BTW, The default constructor of balancer consumed
by main can work before because its config is initialized later in ToolRunner. After adding
check replication policy, its conf cannot be null in construct stage, so here we remove the
default constructor. 
                
> start balancer failed with NPE
> ------------------------------
>
>                 Key: HDFS-4558
>                 URL: https://issues.apache.org/jira/browse/HDFS-4558
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: balancer
>    Affects Versions: 1.2.0
>            Reporter: wenwupeng
>            Assignee: Junping Du
>            Priority: Critical
>         Attachments: HDFS-4558.patch, HDFS-4558-v2.patch
>
>
> 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");
}
>  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message