YARN-9411. TestYarnNativeServices fails sporadically with bind address in use. Contributed by Prabhu Joseph.

This commit is contained in:
Giovanni Matteo Fumarola 2019-03-27 10:44:54 -07:00
parent a4cd75e09c
commit 9cd66198ee
1 changed files with 2 additions and 0 deletions

View File

@ -216,6 +216,8 @@ public class ServiceTestUtils {
LOG.info("Starting up YARN cluster");
if (conf == null) {
setConf(new YarnConfiguration());
conf.setBoolean(YarnConfiguration.YARN_MINICLUSTER_FIXED_PORTS, false);
conf.setBoolean(YarnConfiguration.YARN_MINICLUSTER_USE_RPC, false);
}
conf.setInt(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, 128);
// reduce the teardown waiting time