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

(cherry picked from commit 0783184f4b)
This commit is contained in:
Wangda Tan 2015-11-03 11:18:34 -08:00 committed by Sangjin Lee
parent 098c2df0c0
commit f7deb6b472
2 changed files with 10 additions and 2 deletions

View File

@ -12,6 +12,9 @@ Release 2.7.3 - UNRELEASED
BUG FIXES
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

@ -90,6 +90,11 @@ public class TestDistributedShell {
yarnCluster.start();
conf.set(
YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS,
MiniYARNCluster.getHostname() + ":"
+ yarnCluster.getApplicationHistoryServer().getPort());
waitForNMsToRegister();
URL url = Thread.currentThread().getContextClassLoader().getResource("yarn-site.xml");