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

Zhijie Shen commented on YARN-1106:
-----------------------------------

bq. since the originalTrackingUrl is set to "N/A" 

There's a related bug that we've seen before. Since originalTrackingUrl is set 
to "N/A" when registration and unregistration doesn't supply a tracking url. 
When generating proxiedTrackingUrl, generateProxyUriWithScheme is called with 
"N/A" as input

{code}
      final String scheme = WebAppUtils.getHttpSchemePrefix(conf);
      URI trackingUri = StringUtils.isEmpty(trackingUriWithoutScheme) ? null :
        ProxyUriUtils.getUriFromAMUrl(scheme, trackingUriWithoutScheme);
      String proxy = WebAppUtils.getProxyHostAndPort(conf);
      URI proxyUri = ProxyUriUtils.getUriFromAMUrl(scheme, proxy);
      URI result = ProxyUriUtils.getProxyUri(trackingUri, proxyUri,
          applicationAttemptId.getApplicationId());
{code}

Int generateProxyUriWithScheme, trackingUri will be set to "http://N/A";, and 
result will be set to a wrong string, such as 
"http://proxy.net:8080/proxy/application_1234567_0001/*A*";.


> The RM should point the tracking url to the RM app page if its empty
> --------------------------------------------------------------------
>
>                 Key: YARN-1106
>                 URL: https://issues.apache.org/jira/browse/YARN-1106
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 3.0.0, 2.1.0-beta, 0.23.9
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>         Attachments: YARN-1106.patch, YARN-1106.patch
>
>
> It would be nice if the Resourcemanager set the tracking url to the RM app 
> page if the application master doesn't pass one or passes the empty string.



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

Reply via email to