Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2606

webhdfs client filesystem impl must set the content-type header for create/append

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.23.1, 2.0.0-alpha
    • Fix Version/s: 0.23.1
    • Component/s: webhdfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently the content-type header is not being set and for some reason for append it is being set to the form encoded content type making jersey parameter parsing fail.

      For this and to avoid any kind of proxy transcoding the content-type should be set to binary.

        conn.setRequestProperty("Content-Type", "application/octet-stream");
      
      1. HDFS-2606.patch
        0.8 kB
        Alejandro Abdelnur

        Issue Links

          Activity

          Allen Wittenauer made changes -
          Affects Version/s 2.0.0-alpha [ 12320353 ]
          Affects Version/s 0.24.0 [ 12317653 ]
          Eli Collins made changes -
          Component/s webhdfs [ 12319200 ]
          Component/s hdfs client [ 12312928 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Alejandro Abdelnur made changes -
          Fix Version/s 0.24.0 [ 12317653 ]
          Alejandro Abdelnur made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Tsz Wo Nicholas Sze made changes -
          Hadoop Flags Reviewed [ 10343 ]
          Alejandro Abdelnur made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Alejandro Abdelnur made changes -
          Link This issue blocks HDFS-2178 [ HDFS-2178 ]
          Alejandro Abdelnur made changes -
          Field Original Value New Value
          Attachment HDFS-2606.patch [ 12505560 ]
          Alejandro Abdelnur created issue -

            People

            • Assignee:
              Alejandro Abdelnur
              Reporter:
              Alejandro Abdelnur
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development