You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Zhijie Shen (JIRA)" <ji...@apache.org> on 2014/07/02 12:39:24 UTC

[jira] [Commented] (MAPREDUCE-4064) Job History Link in RM UI is redirecting to the URL which contains Job Id twice

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

Zhijie Shen commented on MAPREDUCE-4064:
----------------------------------------

The bug still happens on trunk. I did some investigation:

1. When generating proxyTrackingUrl from originalTrackUrl, the original host section is replaced by "[proxy host]:[port]/proxy/[application id]", while the following sections are kept. For example,
{code}
http://192.168.1.108:19888/jobhistory/job/job_1404265212778_0003
{code}
in translated into
{code}
https://0.0.0.0:8088/proxy/application_1404265212778_0003/jobhistory/job/job_1404265212778_0003
{code}

2. On the other hand, in WebAppProxyServlet, "[application id]" section is used to search for originalTrackingURL, and the following part is appended to the end of originalTrackingURL. For example, we will see
{code}
http://192.168.1.108:19888/jobhistory/job/job_1404265212778_0001/jobhistory/job/job_1404265212778_0001
{code}
Fortunately, JHS will simply ignore the additional sections, such that we won't see an apparent error. 

Therefore, with the current logic, whenever AM provides a tracking url that has more sections after host:port, it will be finally translated into an url that has duplicate sections after host:port.

It seems we should either hide all the rest sections in proxyTrackingURL, or not append them when WebAppProxyServlet recovers the originalTrackingURL.

> Job History Link in RM UI is redirecting to the URL which contains Job Id twice
> -------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4064
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4064
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.1
>            Reporter: Devaraj K
>            Assignee: Devaraj K
>         Attachments: MAPREDUCE-4064-1.patch, MAPREDUCE-4064.patch
>
>
> {code:xml}
> http://xx.x.x.x:19888/jobhistory/job/job_1332435449546_0001/jobhistory/job/job_1332435449546_0001
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)