[
https://issues.apache.org/jira/browse/HDFS-9432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006946#comment-15006946
]
Xiaobing Zhou commented on HDFS-9432:
-------------------------------------
I was thinking it still needs some fixes when I picked it up, however, it's
duplicate.
> WebHDFS: Some GET operations are wrongly documented as PUT operations
> ---------------------------------------------------------------------
>
> Key: HDFS-9432
> URL: https://issues.apache.org/jira/browse/HDFS-9432
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: documentation
> Reporter: Walter Su
> Assignee: Xiaobing Zhou
> Priority: Minor
>
> In
> [document|https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Get_an_XAttr]
> {noformat}
> curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTRS
> &encoding=<ENCODING>"
> {noformat}
> Actually it's a GET. If you do it with PUT, you get
> {noformat}
> {"RemoteException":{"exception":"IllegalArgumentException","javaClassName":"java.lang.IllegalArgumentException","message":"Invalid
> value for webhdfs parameter \"op\": No enum constant
> org.apache.hadoop.hdfs.web.resources.PutOpParam.Op.GETXATTRS"}}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)