ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Kovalenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-6825) Balancer threshold has invalid range
Date Tue, 12 Aug 2014 11:39:12 GMT

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

Aleksandr Kovalenko updated AMBARI-6825:
----------------------------------------

    Attachment: AMBARI-6825.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)

Mime
View raw message