[ https://issues.apache.org/jira/browse/HDFS-9432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Walter Su resolved HDFS-9432. ----------------------------- Resolution: 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 > 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)