Yi Liu created HDFS-6486: ---------------------------- Summary: 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
Add the user doc for XAttrs via WebHDFS. Get a 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)