hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3000) Add a public API for setting quotas
Date Sat, 31 Mar 2012 06:40:33 GMT

     [ https://issues.apache.org/jira/browse/HDFS-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aaron T. Myers updated HDFS-3000:
---------------------------------

    Attachment: HDFS-3000.patch

Here's an updated patch which moves the class to the o.a.h.hdfs.client package.

bq. DistributedFileSystem.setQuota(..) and other admin methods should be removed. They should
be moved to the admin API.

I tried to do this, but it's not as easy as it seems since DistributedFileSystem is taking
care of a bunch of path handling. The DFSClient just deals in Strings, not Paths, so to use
DFSClient directly I'd need to also re-implement or expose DistributedFileSystem#getPathName,
DistributedFileSystem#checkPath, DistributedFileSystem#makeAbsolute, and DistributedFeilSystem.workingDir.
Given this, are you OK leaving it as is, Nicholas?
                
> Add a public API for setting quotas
> -----------------------------------
>
>                 Key: HDFS-3000
>                 URL: https://issues.apache.org/jira/browse/HDFS-3000
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HDFS-3000.patch, HDFS-3000.patch, HDFS-3000.patch
>
>
> Currently one can set the quota of a file or directory from the command line, but if
a user wants to set it programmatically, they need to use DistributedFileSystem, which is
annotated InterfaceAudience.Private.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message