[
https://issues.apache.org/jira/browse/HDFS-6486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uma Maheswara Rao G updated HDFS-6486:
--------------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Thanks a lot, Yi!, I have just committed this to trunk and branch-2
> Add user doc for XAttrs via WebHDFS.
> ------------------------------------
>
> Key: HDFS-6486
> URL: https://issues.apache.org/jira/browse/HDFS-6486
> Project: Hadoop HDFS
> Issue Type: Task
> Components: webhdfs
> Affects Versions: 3.0.0
> Reporter: Yi Liu
> Assignee: Yi Liu
> Priority: Minor
> Fix For: 3.0.0, 2.5.0
>
> Attachments: HDFS-6486.patch
>
>
> Add the user doc for XAttrs via WebHDFS.
> 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}
> Get an xattr:
> {code}
> curl -i
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTRS&xattr.name=<XATTRNAME>&encoding=<ENCODING>'
> {code}
> Get multiple xattrs (XATTRNAME1, XATTRNAME2, XATTRNAME3):
> {code}
> curl -i
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTRS&xattr.name=<XATTRNAME1>&xattr.name=<XATTRNAME2>&xattr.name=<XATTRNAME3>&encoding=<ENCODING>'
> {code}
> Get all xattrs:
> {code}
> curl -i
> 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTRS&encoding=<ENCODING>'
> {code}
> List xattrs
> {code}
> curl -i 'http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=LISTXATTRS'
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)