Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9432

WebHDFS: Some GET operations are wrongly documented as PUT operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • documentation
    • None

    Description

      In document

      curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETXATTRS
                                    &encoding=<ENCODING>"
      

      Actually it's a GET. If you do it with PUT, you get

      {"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"}}
      

      Attachments

        Issue Links

          Activity

            People

              xiaobingo Xiaobing Zhou
              walter.k.su Walter Su
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: