/** * Log in as the Kerberose principal designated for the proxy * @param conf the configuration holding this information in it. * @throws IOException on any error. */ protected void doSecureLogin(Configuration conf) throws IOException { InetSocketAddress socAddr = getBindAddress(conf); SecurityUtil.login(conf, YarnConfiguration.PROXY_KEYTAB, YarnConfiguration.PROXY_PRINCIPAL, socAddr.getHostName()); }
/** * Log in as the Kerberose principal designated for the proxy * @param conf the configuration holding this information in it. * @throws IOException on any error. */ protected void doSecureLogin(Configuration conf) throws IOException { InetSocketAddress socAddr = getBindAddress(conf); SecurityUtil.login(conf, YarnConfiguration.PROXY_KEYTAB, YarnConfiguration.PROXY_PRINCIPAL, socAddr.getHostName()); }
/** * Log in as the Kerberose principal designated for the proxy * @param conf the configuration holding this information in it. * @throws IOException on any error. */ protected void doSecureLogin(Configuration conf) throws IOException { InetSocketAddress socAddr = getBindAddress(conf); SecurityUtil.login(conf, YarnConfiguration.PROXY_KEYTAB, YarnConfiguration.PROXY_PRINCIPAL, socAddr.getHostName()); }
/** * Log in as the Kerberose principal designated for the proxy * @param conf the configuration holding this information in it. * @throws IOException on any error. */ protected void doSecureLogin(Configuration conf) throws IOException { InetSocketAddress socAddr = getBindAddress(conf); SecurityUtil.login(conf, YarnConfiguration.PROXY_KEYTAB, YarnConfiguration.PROXY_PRINCIPAL, socAddr.getHostName()); }
@Test public void testBindAddress() { YarnConfiguration conf = new YarnConfiguration(); InetSocketAddress defaultBindAddress = WebAppProxyServer.getBindAddress(conf); Assert.assertEquals("Web Proxy default bind address port is incorrect", YarnConfiguration.DEFAULT_PROXY_PORT, defaultBindAddress.getPort()); } }
@Test public void testBindAddress() { YarnConfiguration conf = new YarnConfiguration(); InetSocketAddress defaultBindAddress = WebAppProxyServer.getBindAddress(conf); Assert.assertEquals("Web Proxy default bind address port is incorrect", YarnConfiguration.DEFAULT_PROXY_PORT, defaultBindAddress.getPort()); } }