hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haohui Mai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7766) Add a flag to WebHDFS op=CREATE to not respond with a 307 redirect
Date Thu, 24 Sep 2015 00:21:04 GMT

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

Haohui Mai commented on HDFS-7766:

I'm nervous to make NN handle all the loads. While 307 is captured by the browser and invisible
to jQuery, it is possible to have a different status code and let the JavaScript handles the
redirection manually.

> Add a flag to WebHDFS op=CREATE to not respond with a 307 redirect
> ------------------------------------------------------------------
>                 Key: HDFS-7766
>                 URL: https://issues.apache.org/jira/browse/HDFS-7766
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Ravi Prakash
>            Assignee: Ravi Prakash
>         Attachments: HDFS-7766.01.patch, HDFS-7766.02.patch
> Please see https://issues.apache.org/jira/browse/HDFS-7588?focusedCommentId=14276192&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14276192
> A backwards compatible manner we can fix this is to add a flag on the request which would
disable the redirect, i.e.
> {noformat}
> curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=CREATE[&noredirect=<true|false>]
> {noformat}
> returns 200 with the DN location in the response.
> This would allow the Browser clients to get the redirect URL to put the file to.

This message was sent by Atlassian JIRA

View raw message