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

Chao Sun commented on HDFS-8631:
--------------------------------

Thanks [~surendrasingh] for taking a look.

bq. 1. "0" should be considered as a valid value for space quota.

The behavior in {{WebHdfsFileSystem}} is the same as in 
[{{DFSClient}}|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java#L2509]
 which does not consider 0 as a valid value. In fact the 
[QuotaAdminGuide|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html]
 also says that namespace quota should be a positive long.

bq. 2. Why FSOperations changes is required? Are you planning to implement this 
API in HttpFSServer.

Good catch! I do intend to add the API for HttpFSServer but in a different 
patch. Will remove here.

 

> WebHDFS : Support setQuota
> --------------------------
>
>                 Key: HDFS-8631
>                 URL: https://issues.apache.org/jira/browse/HDFS-8631
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: 2.7.2
>            Reporter: nijel
>            Assignee: Chao Sun
>            Priority: Major
>         Attachments: HDFS-8631-001.patch, HDFS-8631-002.patch, 
> HDFS-8631-003.patch, HDFS-8631-004.patch, HDFS-8631-005.patch, 
> HDFS-8631-006.patch, HDFS-8631-007.patch, HDFS-8631-008.patch, 
> HDFS-8631-009.patch, HDFS-8631-010.patch
>
>
> User is able do quota management from filesystem object. Same operation can 
> be allowed trough REST API.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to