[
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.