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

Document application/octet-stream as required content type for data upload requests in HTTPFS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha2
    • None
    • documentation, httpfs
    • None

    Description

      Documentation at [1] should indicate the PUT and POST requires a command like ( --header ):

      curl -i -X PUT -T <LOCAL_FILE> "http://<DATANODE>:<PORT>/webhdfs/v1/<PATH>?op=CREATE..." --header "content-type: application/octet-stream"

      [1] https://hadoop.apache.org/docs/stable2/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Create_and_Write_to_a_File

      Attachments

        1. HDFS-11222.001.patch
          1 kB
          Yiqun Lin
        2. HDFS-11222.002.patch
          1 kB
          Yiqun Lin

        Issue Links

          Activity

            People

              linyiqun Yiqun Lin
              saileshpatel Sailesh Patel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: