You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yi Liu (JIRA)" <ji...@apache.org> on 2014/06/04 10:28:02 UTC

[jira] [Created] (HDFS-6486) Add user doc for XAttrs via WebHDFS.

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)