hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7093) Allow unprivileged users to set storage policy
Date Sat, 27 Sep 2014 00:55:35 GMT

    [ 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)

Mime
View raw message