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

Hitesh Shah commented on YARN-988:
----------------------------------

[~srimanth.gunturi] The tracker url is served by the application. There is no 
guarantee that it will handle the accept headers correctly and return the data 
in the correct format. In this case, assuming you are talking about tracker url 
for a mapreduce job i.e. from the MR AM, it may be possible to enhance MR to 
handle accept headers in a better manner. However, the YARN proxy just does a 
redirect to the AM and therefore will not be able to do anything. 

Please go ahead and move this jira to MAPREDUCE if required or please add other 
concerns that you have regd. the proxy.


                
> RM /proxy/app always gives HTML response
> ----------------------------------------
>
>                 Key: YARN-988
>                 URL: https://issues.apache.org/jira/browse/YARN-988
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: 2.1.0-beta
>            Reporter: Srimanth Gunturi
>
> A call to [http://host:8088/ws/v1/cluster/apps] gives back JSON response of 
> apps with trackingUrl of 
> [http://host:8088/proxy/application_1375116837536_0003/jobhistory/job/job_1375116837536_0003].
>  
> A GET call to this trackingUrl with {{Accept: application/json}} header 
> always results in HTML output. It redirects (302) to 
> [http://host:19888/jobhistory/job/job_1375116837536_0004/jobhistory/job/job_1375116837536_0004]
>  where the output is always HTML.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to