Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E5049A25 for ; Sat, 31 Mar 2012 18:46:49 +0000 (UTC) Received: (qmail 26360 invoked by uid 500); 31 Mar 2012 18:46:49 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 26315 invoked by uid 500); 31 Mar 2012 18:46:49 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 26307 invoked by uid 99); 31 Mar 2012 18:46:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 18:46:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 18:46:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 43619351639 for ; Sat, 31 Mar 2012 18:46:28 +0000 (UTC) Date: Sat, 31 Mar 2012 18:46:28 +0000 (UTC) From: "Aaron T. Myers (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1382573989.1472.1333219588277.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1411152295.10364.1330013809024.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-3000) Add a public API for setting quotas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243258#comment-13243258 ] Aaron T. Myers commented on HDFS-3000: -------------------------------------- bq. Mind chiming in on the rationale of the setQuota vs setSpaceQuota naming (ie the former for namespace)? Happy to. I agree they're not the clearest names, but I did it this way to mirror the methods in ContentSummary, which are called getQuota and getSpaceQuota, respectively. bq. Agree w Nicholas that we should move setQuota from DFS to this admin class, let's do that in a follow on change Makes sense to me. Filed: HDFS-3173 bq. There's an extra "/**" in the setQuota javadoc. Otherwise, +1 looks good Good catch. Fixed. > 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