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 "Walter Su (JIRA)" <ji...@apache.org> on 2015/11/16 09:08:10 UTC
[jira] [Resolved] (HDFS-9432) WebHDFS: Some GET operations are
wrongly documented as PUT operations
[ https://issues.apache.org/jira/browse/HDFS-9432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Walter Su resolved HDFS-9432.
-----------------------------
Resolution: Fixed
> 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
> 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)