[
https://issues.apache.org/jira/browse/MAPREDUCE-3691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188742#comment-13188742
]
Thomas Graves commented on MAPREDUCE-3691:
------------------------------------------
Manually tested: (did similar for all rm,nm,app master, history server)
curl --compressed -D header.txt -X GET
"http://host.domain.com:8088/ws/v1/cluster/apps"
header:
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Content-Type: application/json
Content-Encoding: gzip
Transfer-Encoding: chunked
Server: Jetty(6.1.26)
curl handles decompressing when using the --compressed output so it comes out
in json as expected.
----
curl -D header.txt -X GET "http://host.domain.com:8088/ws/v1/cluster/apps"
header:
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.26)
again output in json no compression
-----
curl -D header.txt -H "Accept-Encoding: gzip" -X GET
"http://host.domain.com:8088/ws/v1/cluster/apps"
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Content-Type: application/json
Content-Encoding: gzip
Transfer-Encoding: chunked
Server: Jetty(6.1.26)
output comes out in binary gzip
----
curl --compressed -D header.txt -H "Accept: application/xml" -X GET
"http://host.domain.com:8088/ws/v1/cluster/apps"
header:
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Content-Type: application/xml
Content-Encoding: gzip
Content-Length: 479
Server: Jetty(6.1.26)
output comes out in xml as curl handles decompressing
> webservices add support to compress response
> --------------------------------------------
>
> Key: MAPREDUCE-3691
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3691
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.0
> Reporter: Thomas Graves
> Assignee: Thomas Graves
> Priority: Critical
> Attachments: MAPREDUCE-3691.patch
>
>
> The web services currently don't support header 'Accept-Encoding: gzip'
> Given that the responses have a lot of duplicate data like the property names
> in JSON or the tag names in XML, it should
> compress very well, and would save on bandwidth and download time when
> fetching a potentially large response, like the
> ones from ws/v1/cluster/apps and ws/v1/history/mapreduce/jobs
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira