hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11222) Document application/octet-stream as required content type for HTTPFS PUT and POST
Date Fri, 16 Dec 2016 02:18:58 GMT

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

Yiqun Lin commented on HDFS-11222:
----------------------------------

Thanks a lot for the vauleable comments.
{quote}
1.mkdirs request should be sent via PUT method. It can't be sent via POST method.
3.Looking at code (CheckUploadContentTypeFilter#doFilter), this should only affect append
and create, and when data=true.
{quote}
This two points are good catch. I have checked the code for this, it's right that you are
said.
I will attached a new patch to address the points that we are finding that we are sure that
is right now.

> 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
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Sailesh Patel
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HDFS-11222.001.patch
>
>
> 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


Mime
View raw message