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:
parent
6b27de0f36
commit
fb7be09f20
|
@ -21,6 +21,9 @@ Release 2.6.3 - UNRELEASED
|
||||||
YARN-4320. TestJobHistoryEventHandler fails as AHS in MiniYarnCluster no longer
|
YARN-4320. TestJobHistoryEventHandler fails as AHS in MiniYarnCluster no longer
|
||||||
binds to default port 8188. (Varun Saxena via ozawa)
|
binds to default port 8188. (Varun Saxena via ozawa)
|
||||||
|
|
||||||
|
YARN-4326. Fix TestDistributedShell timeout as AHS in MiniYarnCluster no longer
|
||||||
|
binds to default port 8188. (Meng Ding via wangda)
|
||||||
|
|
||||||
Release 2.6.2 - 2015-10-28
|
Release 2.6.2 - 2015-10-28
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -88,9 +88,14 @@ public class TestDistributedShell {
|
||||||
yarnCluster.init(conf);
|
yarnCluster.init(conf);
|
||||||
|
|
||||||
yarnCluster.start();
|
yarnCluster.start();
|
||||||
|
|
||||||
|
conf.set(
|
||||||
|
YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS,
|
||||||
|
MiniYARNCluster.getHostname() + ":"
|
||||||
|
+ yarnCluster.getApplicationHistoryServer().getPort());
|
||||||
|
|
||||||
waitForNMsToRegister();
|
waitForNMsToRegister();
|
||||||
|
|
||||||
URL url = Thread.currentThread().getContextClassLoader().getResource("yarn-site.xml");
|
URL url = Thread.currentThread().getContextClassLoader().getResource("yarn-site.xml");
|
||||||
if (url == null) {
|
if (url == null) {
|
||||||
throw new RuntimeException("Could not find 'yarn-site.xml' dummy file in classpath");
|
throw new RuntimeException("Could not find 'yarn-site.xml' dummy file in classpath");
|
||||||
|
|
Loading…
Reference in New Issue