hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5608) WebHDFS: implement GETACLSTATUS and SETACL.
Date Thu, 16 Jan 2014 18:37:21 GMT

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

Chris Nauroth commented on HDFS-5608:
-------------------------------------

Thanks, Sachin.  I'll check out the new patch.

{quote}
Current implementation : mask::rw,other::rwx 
expected - mask:rw,other:rwx
{quote}

There are multiple ways in which our ACL spec syntax is a subset of the syntax accepted by
Linux setfacl.  I just checked Linux, and it accepts both of the above.  Right now, our implementation
only accepts one of them: mask::rw-.  I wasn't aware of this particular difference, so thank
you for pointing it out.

Let's stick with our minimal supported syntax for now, because it's consistent with the display
of getfacl.  This choice doesn't limit the functionality we provide.  It just means that some
of the syntax shortcuts available on Linux aren't available here.

For the record, here are all of the syntax aspects supported on Linux that we don't yet support
(that I'm aware of).  We can revisit later if we want to fully support all of this, but it's
not critical for an initial implementation.
# The scope default can be shortened to d.
# The types user/group/mask/other can be shortened to u/g/m/o respectively.
# Permissions can be specified partially, with anything omitted assumed to be off.  For example,
mask::r-x can be shortened to mask::rx.
# Permissions can be an octal digit 0-7.
# Whitespace between delimiter characters and non-delimiter characters is ignored.

{quote}
Where can we define the common method which be accessed from both projects(hdfs,common).
{quote}

Right now, I'm thinking that we can define a static method on the {{AclEntry}} class.  HADOOP-10213
is still open for some changes in the CLI parsing, so I'm going to discuss it over there with
[~vinayrpet] and you.

> WebHDFS: implement GETACLSTATUS and SETACL.
> -------------------------------------------
>
>                 Key: HDFS-5608
>                 URL: https://issues.apache.org/jira/browse/HDFS-5608
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: webhdfs
>    Affects Versions: HDFS ACLs (HDFS-4685)
>            Reporter: Chris Nauroth
>            Assignee: Sachin Jose
>         Attachments: HDFS-5608.0.patch, HDFS-5608.1.patch, HDFS-5608.2.patch
>
>
> Implement and test {{GETACLS}} and {{SETACL}} in WebHDFS.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message