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

Proper error msg to be printed when invalid operation type is given to WebHDFS operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 2.9.0, 3.0.0-alpha4
    • webhdfs
    • None

    Description

      When wrong operation type is given to WebHDFS operations, following Error message is printed –

      For ex: CREATE is called with GET instead of PUT--

      HTTP/1.1 400 Bad Request
      ......
      {"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.CREATE"}}

      Expected--
      Valid Error message to be printed

      Attachments

        1. HDFS-8741.001.patch
          6 kB
          Surendra Singh Lilhore
        2. HDFS-8741.002.patch
          6 kB
          Surendra Singh Lilhore
        3. HDFS-8741.003.patch
          6 kB
          Surendra Singh Lilhore
        4. HDFS-8741.004.patch
          6 kB
          Surendra Singh Lilhore
        5. HDFS-8741.005.patch
          6 kB
          Surendra Singh Lilhore

        Activity

          People

            surendralilhore Surendra Singh Lilhore
            archanat Archana T
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: