YARN-4326. Fix TestDistributedShell timeout as AHS in MiniYarnCluster no longer binds to default port 8188. (Meng Ding via wangda)

This commit is contained in:
Wangda Tan 2015-11-03 11:18:34 -08:00
parent 957f0311a1
commit 0783184f4b
2 changed files with 10 additions and 2 deletions

View File

@ -1039,6 +1039,9 @@ Release 2.8.0 - UNRELEASED
YARN-4127. RM fail with noAuth error if switched from failover to non-failover.
(Varun Saxena via jianhe)
YARN-4326. Fix TestDistributedShell timeout as AHS in MiniYarnCluster no longer
binds to default port 8188. (Meng Ding via wangda)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -92,9 +92,14 @@ public class TestDistributedShell {
yarnCluster.init(conf);
yarnCluster.start();
conf.set(
YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS,
MiniYARNCluster.getHostname() + ":"
+ yarnCluster.getApplicationHistoryServer().getPort());
waitForNMsToRegister();
URL url = Thread.currentThread().getContextClassLoader().getResource("yarn-site.xml");
if (url == null) {
throw new RuntimeException("Could not find 'yarn-site.xml' dummy file in classpath");