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

Steve Loughran commented on YARN-1946:
--------------------------------------

We've replaced the normal AmFilter with one that doesn't proxy under ws/*, 
looking into is code 

{{WebAppUitls.getProxyHostAndPort(Configuration conf)}} does the work; it just 
extracts it from {{conf.get(YarnConfiguration.PROXY_ADDRESS)}}, which is coming 
out of yarn-site.xml

..and looking at that -it is public on branch-2.4.0, so I'd close this -after 
you verify that the 2.4 release works for you as it does for us.


That method will work for YARN apps sharing the classpath, but doesn't do 
anything for apps in other languages -the proxy does need to be passed down, 
ideally during AM registration


> need Public interface for WebAppUtils.getProxyHostAndPort
> ---------------------------------------------------------
>
>                 Key: YARN-1946
>                 URL: https://issues.apache.org/jira/browse/YARN-1946
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, webapp
>    Affects Versions: 2.4.0
>            Reporter: Thomas Graves
>            Priority: Critical
>
> ApplicationMasters are supposed to go through the ResourceManager web app 
> proxy if they have web UI's so they are properly secured.  There is currently 
> no public interface for Application Masters to conveniently get the proxy 
> host and port.  There is a function in WebAppUtils, but that class is 
> private.  
> We should provide this as a utility since any properly written AM will need 
> to do this.



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

Reply via email to