List of usage examples for org.apache.hadoop.yarn.api ApplicationConstants APPLICATION_WEB_PROXY_BASE_ENV
String APPLICATION_WEB_PROXY_BASE_ENV
To view the source code for org.apache.hadoop.yarn.api ApplicationConstants APPLICATION_WEB_PROXY_BASE_ENV.
Click Source Link
From source file:com.datatorrent.stram.security.StramWSFilterInitializer.java
License:Apache License
@Override public void initFilter(FilterContainer container, Configuration conf) { Map<String, String> params = new HashMap<String, String>(); String proxy = WebAppUtils.getProxyHostAndPort(conf); String[] parts = proxy.split(":"); params.put(StramWSFilter.PROXY_HOST, parts[0]); params.put(StramWSFilter.PROXY_URI_BASE, ConfigUtils.getSchemePrefix(new YarnConfiguration()) + proxy + System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV)); container.addFilter(FILTER_NAME, FILTER_CLASS, params); }
From source file:org.apache.slider.server.appmaster.web.rest.InsecureAmFilterInitializer.java
License:Apache License
@VisibleForTesting protected String getApplicationWebProxyBase() { return System.getenv(ApplicationConstants.APPLICATION_WEB_PROXY_BASE_ENV); }