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

Masatake Iwasaki commented on YARN-3714:
----------------------------------------

In non-HA settings, if users do not explicitly set the 
{{yarn.resourcemanager.webapp.address}} in configuration, 
{{WebAppUtils#getResolvedRMWebAppURLWithoutScheme}} returns RM webapp address 
based on the value of {{yarn.resourcemanager.hostname}} via the default value 
set by yarn-default.xml.
{noformat}
  <property>
    <name>yarn.resourcemanager.webapp.address</name>
    <value>${yarn.resourcemanager.hostname}:8088</value>
  </property>
{noformat}

As a result, WebAppUtils#getProxyHostsAndPortsForAmFilter can return proper 
proxy address.

This does not apply to {{yarn.resourcemanager.hostname._rm-id_}} in HA mode.


> AM proxy filter can not get proper default proxy address if RM-HA is enabled
> ----------------------------------------------------------------------------
>
>                 Key: YARN-3714
>                 URL: https://issues.apache.org/jira/browse/YARN-3714
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>
> Default proxy address could not be got without setting 
> {{yarn.resourcemanager.webapp.address._rm-id_}} and/or 
> {{yarn.resourcemanager.webapp.https.address._rm-id_}} explicitly if RM-HA is 
> enabled.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to