You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrii Babiichuk (JIRA)" <ji...@apache.org> on 2014/08/12 13:39:12 UTC

[jira] [Commented] (AMBARI-6825) Balancer threshold has invalid range

    [ https://issues.apache.org/jira/browse/AMBARI-6825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14093984#comment-14093984 ] 

Andrii Babiichuk commented on AMBARI-6825:
------------------------------------------

+1 for the patch

> Balancer threshold has invalid range
> ------------------------------------
>
>                 Key: AMBARI-6825
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6825
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.7.0
>            Reporter: Aleksandr Kovalenko
>            Assignee: Aleksandr Kovalenko
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-6825.patch
>
>
> *STR:*
> # Click on 'Rebalance HDFS'
> # Enter 0 as threshold.
> *Result:* 'Start' is active.
> Note: execution of rebalancer with zero threshold responses with error:
> {noformat}
> [hdfs@c6401 bigdata]$ hadoop --config /etc/hadoop/conf balancer -threshold 0
> DEPRECATED: Use of this script to execute hdfs command is deprecated.
> Instead use the hdfs command for it.
> Expecting a number in the range of [1.0, 100.0]: 0
> Usage: java Balancer
> 	[-policy <policy>]	the balancing policy: datanode or blockpool
> 	[-threshold <threshold>]	Percentage of disk capacity
> 	[-exclude <hosts-file>]	Excludes the datanodes in hosts-file
> 	[-include <hosts-file>]	Includes only the datanodes in hosts-file
> Balancing took 1.058 seconds
> 14/08/11 15:43:01 ERROR balancer.Balancer: Exiting balancer due an exception
> java.lang.IllegalArgumentException: Number out of range: threshold = 0.0
> 	at org.apache.hadoop.hdfs.server.balancer.Balancer$Cli.parse(Balancer.java:1618)
> 	at org.apache.hadoop.hdfs.server.balancer.Balancer$Cli.run(Balancer.java:1591)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.hadoop.hdfs.server.balancer.Balancer.main(Balancer.java:1681)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)