YARN-4289. TestDistributedShell failing with bind exception. (Brahma Reddy Battula via stevel)

This commit is contained in:
Steve Loughran 2015-10-24 12:48:03 +01:00
parent b727dfd61c
commit 65b928d8c7
2 changed files with 6 additions and 0 deletions

View File

@ -934,6 +934,9 @@ Release 2.8.0 - UNRELEASED
YARN-4294. [JDK8] Fix javadoc errors caused by wrong reference and illegal
tag. (aajisaka)
YARN-4289. TestDistributedShell failing with bind exception.
(Brahma Reddy Battula via stevel)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -39,6 +39,7 @@ import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileContext;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.net.NetUtils;
import org.apache.hadoop.net.ServerSocketUtil;
import org.apache.hadoop.util.JarFinder;
import org.apache.hadoop.util.Shell;
import org.apache.hadoop.yarn.api.records.ApplicationReport;
@ -81,6 +82,8 @@ public class TestDistributedShell {
conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
conf.set(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class.getName());
conf.setBoolean(YarnConfiguration.NODE_LABELS_ENABLED, true);
conf.set("mapreduce.jobhistory.address",
"0.0.0.0:" + ServerSocketUtil.getPort(10021, 10));
if (yarnCluster == null) {
yarnCluster =