hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter Su (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (HDFS-9432) WebHDFS: Some GET operations are wrongly documented as PUT operations
Date Mon, 16 Nov 2015 08:09:10 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Walter Su reopened HDFS-9432:
-----------------------------

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

Mime
View raw message