You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2008/09/24 01:25:44 UTC
[jira] Commented: (HADOOP-4254) Cannot setSpaceQuota to 1TB
[ https://issues.apache.org/jira/browse/HADOOP-4254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633968#action_12633968 ]
Tsz Wo (Nicholas), SZE commented on HADOOP-4254:
------------------------------------------------
The problem is due to the constructor of SetQuotaCommand. There is a int overflow for setting multiplier = 1024 * 1024 * 1024 * 1024, where the type of multiplier is long. A simple fix is to change 1024 to 1024L. I suggest we use StringUtils.TraditionalBinaryPrefix to parsing the value.
> Cannot setSpaceQuota to 1TB
> ---------------------------
>
> Key: HADOOP-4254
> URL: https://issues.apache.org/jira/browse/HADOOP-4254
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Reporter: Tsz Wo (Nicholas), SZE
>
> When setting space quota to 1TB, it shows "/ by zero".
> {noformat}
> bash-3.2$ ./bin/hadoop dfsadmin -setSpaceQuota 1TB /user
> setSpaceQuota: / by zero
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.