hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6486) Add user doc for XAttrs via WebHDFS.
Date Wed, 25 Jun 2014 14:09:30 GMT

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

Hudson commented on HDFS-6486:
------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #1785 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1785/])
HDFS-6486. Add user doc for XAttrs via WebHDFS. Contributed by Yi Liu. (umamahesh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1605062)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm


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

Mime
View raw message