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 0548817E0B for ; Sat, 27 Sep 2014 00:55:36 +0000 (UTC) Received: (qmail 53557 invoked by uid 500); 27 Sep 2014 00:55:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 53508 invoked by uid 500); 27 Sep 2014 00:55:35 -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 53493 invoked by uid 99); 27 Sep 2014 00:55:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2014 00:55:35 +0000 Date: Sat, 27 Sep 2014 00:55:35 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7093) Allow unprivileged users to set storage policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14150290#comment-14150290 ] Jing Zhao commented on HDFS-7093: --------------------------------- Only one nit: for the following code maybe we can also check if permission is enabled before initializing pc. Other than this +1. {code} + FSPermissionChecker pc = null; + if (restrictSetStoragePolicy) { + checkSuperuserPrivilege(); + } else { + pc = getPermissionChecker(); + } {code} > Allow unprivileged users to set storage policy > ---------------------------------------------- > > Key: HDFS-7093 > URL: https://issues.apache.org/jira/browse/HDFS-7093 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client, namenode > Affects Versions: 3.0.0 > Reporter: Arpit Agarwal > Assignee: Arpit Agarwal > Attachments: HDFS-7093.01.patch, HDFS-7093.02.patch, HDFS-7093.03.patch > > > Currently we do not allow unprivileged users to set the storage policy on a directory. This Jira proposes removing this restriction. -- This message was sent by Atlassian JIRA (v6.3.4#6332)