You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Sailesh Patel (JIRA)" <ji...@apache.org> on 2016/12/07 23:19:58 UTC

[jira] [Commented] (HDFS-11222) Document application/octet-stream as required content type for HTTPFS PUT and POST

    [ https://issues.apache.org/jira/browse/HDFS-11222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15730261#comment-15730261 ] 

Sailesh Patel commented on HDFS-11222:
--------------------------------------

 https://issues.apache.org/jira/browse/HDFS-2705  has a  validation check in  CheckUploadContentTypeFilter.java  that a  PUT or POST requires content type to be application/octet-stream


> Document application/octet-stream as required content type for HTTPFS PUT and POST
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-11222
>                 URL: https://issues.apache.org/jira/browse/HDFS-11222
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: documentation, httpfs
>            Reporter: Sailesh Patel
>            Priority: Minor
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org