[
https://issues.apache.org/jira/browse/HDFS-14143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16720921#comment-16720921
]
Takanobu Asanuma commented on HDFS-14143:
-----------------------------------------
Actually, the problem I saw is different. Seems {{clrQuota}} works well. Sorry
for the confusion.
I didn't use {{clrQuota}}. I just removed and added the mount point.
{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.
> RBF: After clrQuota mount point is not allowing to create new files
> --------------------------------------------------------------------
>
> Key: HDFS-14143
> URL: https://issues.apache.org/jira/browse/HDFS-14143
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 3.1.1
> Reporter: Harshakiran Reddy
> Assignee: Takanobu Asanuma
> Priority: Major
> Labels: RBF
>
> {noformat}
> bin> ./hdfs dfsrouteradmin -setQuota /src10 -nsQuota 3
> Successfully set quota for mount point /src10
> bin> ./hdfs dfsrouteradmin -clrQuota /src10
> Successfully clear quota for mount point /src10
> bin> ./hdfs dfs -put harsha /dest10/file1
> bin> ./hdfs dfs -put harsha /dest10/file2
> bin> ./hdfs dfs -put harsha /dest10/file3
> put: The NameSpace quota (directories and files) of directory /dest10 is
> exceeded: quota=3 file count=4
> bin> ./hdfs dfsrouteradmin -ls /src10
> Mount Table Entries:
> Source Destinations Owner
> Group Mode Quota/Usage
> /src10 hacluster->/dest10 hdfs
> hadoop rwxr-xr-x [NsQuota: -/-, SsQuota:
> -/-]
> bin>
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]