hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milind Bhandarkar (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-1113) Allow users with write access to a directory to change ownership of its subdirectories/files
Date Tue, 27 Apr 2010 21:16:38 GMT

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

Milind Bhandarkar commented on HDFS-1113:
-----------------------------------------

>From what I have heard in brief conversations with File system experts, the requirement
to be a superuser to chown or chgroup in Posix came about because of the need to stop abuse
of user-level quotas. I could abuse the quotas, by changing ownership of my files/directories
to someone else, so that these files/directories are counted against their quota, not mine.

In HDFS, we have directory-based quotas, and not user-based. So, this scenario does not hold
true.

(Is there any other reason for allowing chown only by superuser in Posix?)

If we allow chown, chgrp, setQuota and clrQuota operations on subdirectories for the owner
of the directory, then it will ease operations of shared large clusters.

HDFS administrators will have to simply create directories such as:

/data/BusinessUnit1, /data/BusinessUnit2..,

set the BU-specific quotas, set ownership to the respective BU leaders.

Afterward, creating subdirectories under these directories for users/projects/teams, managing
their quotas etc is the responsibility of the BU leader, and not of the central HDFS administrators.

Thoughts ?


> Allow users with write access to a directory to change ownership of its subdirectories/files
> --------------------------------------------------------------------------------------------
>
>                 Key: HDFS-1113
>                 URL: https://issues.apache.org/jira/browse/HDFS-1113
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: name-node
>         Environment: All
>            Reporter: Milind Bhandarkar
>            Assignee: Sanjay Radia
>
> owner and group of a file/directory, and namespace/diskspace quota for a directory are
mutable attributes. If I have writable access to a directory, say /team/MyTeam, and if there
are subdirectories underneath, such as /team/MyTeam/TeamMember1, /team/MyTeam/TeamMember2,
then I should be able to chown, chgrp, setQuota, clrQuota on TeamMemeber{1|2} subdirectories.
Currently in HDFS (and in Posix), it requires me to be a superuser to perform these operations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message