YARN-11554. Fix TestRMFailover#testWebAppProxyInStandAloneMode Failed. (#5971)

This commit is contained in:
slfan1989 2023-09-01 01:46:33 +08:00 committed by GitHub
parent 2f739450be
commit b6d06c8928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,6 +212,8 @@ public void testAutomaticFailover()
public void testWebAppProxyInStandAloneMode() throws YarnException, public void testWebAppProxyInStandAloneMode() throws YarnException,
InterruptedException, IOException { InterruptedException, IOException {
conf.setBoolean(YarnConfiguration.AUTO_FAILOVER_ENABLED, false); conf.setBoolean(YarnConfiguration.AUTO_FAILOVER_ENABLED, false);
conf.set(YarnConfiguration.RM_HA_ID, RM1_NODE_ID);
WebAppProxyServer webAppProxyServer = new WebAppProxyServer(); WebAppProxyServer webAppProxyServer = new WebAppProxyServer();
try { try {
conf.set(YarnConfiguration.PROXY_ADDRESS, "0.0.0.0:9099"); conf.set(YarnConfiguration.PROXY_ADDRESS, "0.0.0.0:9099");