Skip to content

Commit 9cd6619

Browse files
author
Giovanni Matteo Fumarola
committed
YARN-9411. TestYarnNativeServices fails sporadically with bind address in use. Contributed by Prabhu Joseph.
1 parent a4cd75e commit 9cd6619

File tree

1 file changed

+2
-0
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/test/java/org/apache/hadoop/yarn/service

1 file changed

+2
-0
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/test/java/org/apache/hadoop/yarn/service/ServiceTestUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ protected void setupInternal(int numNodeManager)
216216
LOG.info("Starting up YARN cluster");
217217
if (conf == null) {
218218
setConf(new YarnConfiguration());
219+
conf.setBoolean(YarnConfiguration.YARN_MINICLUSTER_FIXED_PORTS, false);
220+
conf.setBoolean(YarnConfiguration.YARN_MINICLUSTER_USE_RPC, false);
219221
}
220222
conf.setInt(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, 128);
221223
// reduce the teardown waiting time

0 commit comments

Comments
 (0)