Aleksandr Kovalenko created AMBARI-6825:
-------------------------------------------

             Summary: 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


*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)

Reply via email to