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

Andrew Wang commented on HDFS-8631:
-----------------------------------

Hi [~surendrasingh],

I did some digging into the history, as the asymmetry between 
FileSystem#getQuota and HdfsAdmin#setQuota seemed intentional. Sure enough, 
there's a discussion on HDFS-3000.

It sounds like we want to expose the HDFS-specific functionality in HdfsAdmin 
via a REST interface. However, we need to do this without expanding the 
FileSystem interface, since the HdfsAdmin functionality is HDFS-specific. So, 
we need to define a separate WebHdfsAdmin separate from WebHdfsFileSystem. The 
server-side functionality can still be implemented with the same NN and DN 
servlets.

We also need to document these WebHdfsAdmin APIs specially, perhaps in a new 
page that separates them from the FileSystem APIs.

> WebHDFS : Support get/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: Surendra Singh Lilhore
>         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
>
>
> User is able do quota management from filesystem object. Same operation can 
> be allowed trough REST API.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to