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

Pete Wyckoff commented on HADOOP-3264:
--------------------------------------

I like the latter methods as the APIs are better defined and called out, but I 
think the former single method is more in the spirit of hadoop and having a 
smaller #of apis but with params that can be extended.

But, I do think the latter 4 methods are a better defined API.  What happens 
when the pathinfo struct changes and old code doesn't know to set some needed 
field but still compiles against a newer version that's expecting that field. 
Unless the new code takes are to check the hdfsFileInfo structure is properly 
set, things could go haywire. e.g., adding last accessed int which is not set 
could result in last accessed being set to 1970.

-- pete


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

Reply via email to