hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kanaka kumar avvaru (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3272) Make it possible to state MIME type for a webhdfs OPEN operation's result
Date Mon, 29 Jun 2015 11:07:05 GMT

     [ https://issues.apache.org/jira/browse/HDFS-3272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

kanaka kumar avvaru updated HDFS-3272:
    Status: Open  (was: Patch Available)

Cancelling patch and assigned to myself to update patch on latest code base. [~jamarkha],
please feel frre to assign back if you want to work on the JIRA

> Make it possible to state MIME type for a webhdfs OPEN operation's result
> -------------------------------------------------------------------------
>                 Key: HDFS-3272
>                 URL: https://issues.apache.org/jira/browse/HDFS-3272
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: webhdfs
>    Affects Versions: 2.0.2-alpha, 1.0.1
>            Reporter: Steve Loughran
>            Assignee: kanaka kumar avvaru
>            Priority: Minor
>              Labels: BB2015-05-TBR
>         Attachments: HDFS-3272.patch
> when you do a GET from the browser with webhdfs, you get the file, but it comes over
as a binary as the browser doesn't know what type it is. Having a mime mapping table and such
like would be one solution, but another is simply to add a {{mime}} query parameter that would
provide a string to be reflected back to the caller as the Content-Type header in the HTTP
> e.g.
> {code}
> http://ranier:50070/webhdfs/v1/results/Debounce/part-r-00000.csv?op=open&mime=text/csv

> {code}
> would generate a 307 redirect to the datanode, with the 
> {code}
> http://dn1:50075/webhdfs/v1/results/Debounce/part-r-00000.csv?op=open&mime=text/csv

> {code}
> which would then generate the result
> {code}
> 200 OK
> Content-Type:text/csv
> GATE4,eb8bd736445f415e18886ba037f84829,55000,2007-01-14,14:01:54,
> GATE4,ec58edcce1049fa665446dc1fa690638,8030803000,2007-01-14,13:52:31,
> ...
> {code}

This message was sent by Atlassian JIRA

View raw message