[
https://issues.apache.org/jira/browse/HDFS-14150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16736793#comment-16736793
]
Yiqun Lin commented on HDFS-14150:
----------------------------------
Thanks for updating the patch, [~tasanuma0829]! Almost looks great now, only
two nits:
* Can we update the setting's description from single line to multiple lines
like following? It will be look more readable in xml file.
{noformat}
<property>
<name>dfs.federation.router.quota.enable</name>
<value>false</value>
<description>
Set to true to enable quota system in Router. When it's enabled, setting
or clearing sub-cluster's quota directly is not recommended since Router
Admin server will override sub-cluster's quota with global quota.
</description>
</property>
{noformat}
* In test, we need the white space here,
{{long ssQuota = 3*BLOCK_SIZE;}} to {{long ssQuota = 3 * BLOCK_SIZE;}}
> RBF: Quotas of the sub-cluster should be removed when removing the mount point
> ------------------------------------------------------------------------------
>
> Key: HDFS-14150
> URL: https://issues.apache.org/jira/browse/HDFS-14150
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Takanobu Asanuma
> Assignee: Takanobu Asanuma
> Priority: Major
> Labels: RBF
> Attachments: HDFS-14150-HDFS-13891.2.patch, HDFS-14150.1.patch,
> HDFS-14150.2.patch
>
>
> From HDFS-14143
> {noformat}
> $ hdfs dfsrouteradmin -add /ns1_data ns1 /data
> $ hdfs dfsrouteradmin -setQuota /ns1_data -nsQuota 10 -ssQuota 10
> $ hdfs dfsrouteradmin -ls /ns1_data
> Source Destinations Owner
> Group Mode Quota/Usage
> /ns1_data ns1->/data tasanuma
> users rwxr-xr-x [NsQuota: 10/1, SsQuota:
> 10 B/0 B]
> $ hdfs dfsrouteradmin -rm /ns1_data
> $ hdfs dfsrouteradmin -add /ns1_data ns1 /data
> $ hdfs dfsrouteradmin -ls /ns1_data
> Source Destinations Owner
> Group Mode Quota/Usage
> /ns1_data ns1->/data tasanuma
> users rwxr-xr-x [NsQuota: -/-, SsQuota:
> -/-]
> $ hadoop fs -put file1 /ns1_data/file1
> put: The DiskSpace quota of /data is exceeded: quota = 10 B = 10 B but
> diskspace consumed = 402653184 B = 384 MB
> {noformat}
> This is because the quotas of the subclusters still remain after "hdfs
> dfsrouteradmin -rm". And "hdfs dfsrouteradmin -add" doesn't reflect the
> existing quotas.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]