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

Yi Liu commented on HDFS-6259:
------------------------------

I have just committed this to branch.

> Support extended attributes via WebHDFS
> ---------------------------------------
>
>                 Key: HDFS-6259
>                 URL: https://issues.apache.org/jira/browse/HDFS-6259
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: webhdfs
>    Affects Versions: HDFS XAttrs (HDFS-2006)
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>         Attachments: HDFS-6259.1.patch, HDFS-6259.2.patch, HDFS-6259.3.patch, 
> HDFS-6259.patch
>
>
> Get xattrs:
> {code}curl -i 
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTRS&encoding=<ENCODING>'{code}
> Get xattr:
> {code}curl -i 
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTR&xattr.name=<XATTRNAME>&encoding=<ENCODING>'{code}
> Set xattr:
> {code}curl -i -X PUT 
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=SETXATTR&xattr.name=<XATTRNAME>&xattr.value=<XATTRVALUE>&flag=<FLAG>'{code}
> Remove xattr:
> {code}curl -i -X PUT 
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=REMOVEXATTR&xattr.name=<XATTRNAME>'{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to