[ 
https://issues.apache.org/jira/browse/HDFS-14150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724615#comment-16724615
 ] 

Takanobu Asanuma commented on HDFS-14150:
-----------------------------------------

{quote}This won't be easy to do since sub-clusters maybe have different 
existing quota values.
{quote}
Is it about {{Multiple subclusters}}?

I'm still wondering if it is possible that both of sub-clusters and 
Router(StateStore) can synchronize with each other. I mean, updating not only 
the quota usage but also the quota definition periodically would be good. The 
current specification is following and a little confusing.
 * If users use setQuota/crlQuota in Router admin, the quota definition will be 
sync to the subclusters.
 * Even if users use setQuota/crlQuota in subclusters, the quota definition 
isn't sync to the Router(StateStore).

> 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: Improvement
>            Reporter: Takanobu Asanuma
>            Assignee: Takanobu Asanuma
>            Priority: Major
>              Labels: RBF
>
> 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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to