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

View File

@ -216,6 +216,8 @@ protected void setupInternal(int numNodeManager)
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