hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Macdonald (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-3264) libhdfs does not provide permissions in API
Date Thu, 17 Apr 2008 22:19:21 GMT

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

Craig Macdonald commented on HADOOP-3264:
-----------------------------------------

For the set methods, what sort of methods should be designed?

Option 1: 

One method that takes a reference to a hdfsFileInfo struct and updates all details of the
path, or the details that are not null.

{code}
int hdfsSetPathInfo(hdfsFS fs, const char* path, hdfsFileInfo* pathinfo);
{code}

Option 2:

Various methods for setting various properties of a file. Of note, there is a 
hdfsSetReplication method already.

{code}
int hdfsSetPathOwner(hdfsFS fs, const char* path, char* owner);
int hdfsSetPathGroup(hdfsFS fs, const char* path, char* owner);
int hdfsSetPathPermissions(hdfsFS fs, const char* path, short permissions);

int hdfsSetPathLastMod(hdfsFS fs, const char* path, tTime newtime);

{code}



> libhdfs does not provide permissions in API
> -------------------------------------------
>
>                 Key: HADOOP-3264
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3264
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: libhdfs
>    Affects Versions: 0.16.2
>            Reporter: Craig Macdonald
>         Attachments: libhdfs_permissions.v1.patch, libhdfs_permissions.v2.patch
>
>
> There is no support in libhdfs methods for obtaining or setting the permissions, owner
or group-owner of files in hdfs.

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