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

Uma Maheswara Rao G commented on HDFS-6259:
-------------------------------------------

Overall looks good. 

Seems like there are some formatting issues:

{code}
 Map<?, ?> m = (Map<?, ?>)json.get(XAttr.class.getSimpleName());
 ....
+    String name = (String)m.get("name");
+    String value = (String)m.get("value");
 {code}
need format.

[~cnauroth], As you involved Do you mind taking a look on this if you have any 
comments from your side. I would like to push this in before merge. Thanks


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