hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Radia (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8457) Address file ownership issue for users in Administrators group on Windows.
Date Fri, 13 Jul 2012 16:34:34 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-8457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413859#comment-13413859
] 

Sanjay Radia commented on HADOOP-8457:
--------------------------------------

The two approaches explored in this jira are
# When a local file is created, change the owner to the creator of the file
# Leave the owner of local file to policies of local file (ie Admin in the case of Windows
if the owner is an Admin). Add a method in FileStatus to check if the owner is current user
(so that it can match the behavior of the local file system for local files) - current patch

Approach (2) seems reasonable except given the Hadoop APIs, apps are justified to do fileStatus.getOwner().equals(currentUser).
Such code is probably all over the place and can't be avoided. Good news is that LocalFs is
used only for  emulating Hadoop or for copying files back and forth. Hard call on which is
the right approach.
                
> Address file ownership issue for users in Administrators group on Windows.
> --------------------------------------------------------------------------
>
>                 Key: HADOOP-8457
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8457
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: native
>    Affects Versions: 1.1.0, 0.24.0
>            Reporter: Chuan Liu
>            Assignee: Ivan Mitic
>            Priority: Minor
>         Attachments: HADOOP-8457-branch-1-win_Admins(2).patch, HADOOP-8457-branch-1-win_Admins.patch
>
>
> On Linux, the initial file owners are the creators. (I think this is true in general.
If there are exceptions, please let me know.) On Windows, the file created by a user in the
Administrators group has the initial owner ‘Administrators’, i.e. the the Administrators
group is the initial owner of the file. As a result, this leads to an exception when we check
file ownership in SecureIOUtils .checkStat() method. As a result, this method is disabled
right now. We need to address this problem and enable the method on Windows.

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