MAPREDUCE-6525. Fix test failure of TestMiniMRClientCluster.testRestart. Contributed by Masatake Iwasaki.
This commit is contained in:
parent
90e1405516
commit
04d97f8abb
@ -287,6 +287,9 @@ Trunk (Unreleased)
|
|||||||
MAPREDUCE-5801. Uber mode's log message is missing a vcore reason
|
MAPREDUCE-5801. Uber mode's log message is missing a vcore reason
|
||||||
(Steven Wong via aw)
|
(Steven Wong via aw)
|
||||||
|
|
||||||
|
MAPREDUCE-6525. Fix test failure of TestMiniMRClientCluster.testRestart.
|
||||||
|
(Masatake Iwasaki via aajisaka)
|
||||||
|
|
||||||
Release 2.8.0 - UNRELEASED
|
Release 2.8.0 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -186,6 +186,27 @@ public void serviceInit(Configuration conf) throws Exception {
|
|||||||
super.serviceInit(conf);
|
super.serviceInit(conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void serviceStart() throws Exception {
|
||||||
|
super.serviceStart();
|
||||||
|
|
||||||
|
//need to do this because historyServer.init creates a new Configuration
|
||||||
|
getConfig().set(JHAdminConfig.MR_HISTORY_ADDRESS,
|
||||||
|
historyServer.getConfig().get(JHAdminConfig.MR_HISTORY_ADDRESS));
|
||||||
|
MRWebAppUtil.setJHSWebappURLWithoutScheme(getConfig(),
|
||||||
|
MRWebAppUtil.getJHSWebappURLWithoutScheme(historyServer.getConfig()));
|
||||||
|
|
||||||
|
LOG.info("MiniMRYARN ResourceManager address: " +
|
||||||
|
getConfig().get(YarnConfiguration.RM_ADDRESS));
|
||||||
|
LOG.info("MiniMRYARN ResourceManager web address: " +
|
||||||
|
WebAppUtils.getRMWebAppURLWithoutScheme(getConfig()));
|
||||||
|
LOG.info("MiniMRYARN HistoryServer address: " +
|
||||||
|
getConfig().get(JHAdminConfig.MR_HISTORY_ADDRESS));
|
||||||
|
LOG.info("MiniMRYARN HistoryServer web address: " +
|
||||||
|
getResolvedMRHistoryWebAppURLWithoutScheme(getConfig(),
|
||||||
|
MRWebAppUtil.getJHSHttpPolicy() == HttpConfig.Policy.HTTPS_ONLY));
|
||||||
|
}
|
||||||
|
|
||||||
private class JobHistoryServerWrapper extends AbstractService {
|
private class JobHistoryServerWrapper extends AbstractService {
|
||||||
public JobHistoryServerWrapper() {
|
public JobHistoryServerWrapper() {
|
||||||
super(JobHistoryServerWrapper.class.getName());
|
super(JobHistoryServerWrapper.class.getName());
|
||||||
@ -228,21 +249,6 @@ public void run() {
|
|||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
throw new YarnRuntimeException(t);
|
throw new YarnRuntimeException(t);
|
||||||
}
|
}
|
||||||
//need to do this because historyServer.init creates a new Configuration
|
|
||||||
getConfig().set(JHAdminConfig.MR_HISTORY_ADDRESS,
|
|
||||||
historyServer.getConfig().get(JHAdminConfig.MR_HISTORY_ADDRESS));
|
|
||||||
MRWebAppUtil.setJHSWebappURLWithoutScheme(getConfig(),
|
|
||||||
MRWebAppUtil.getJHSWebappURLWithoutScheme(historyServer.getConfig()));
|
|
||||||
|
|
||||||
LOG.info("MiniMRYARN ResourceManager address: " +
|
|
||||||
getConfig().get(YarnConfiguration.RM_ADDRESS));
|
|
||||||
LOG.info("MiniMRYARN ResourceManager web address: " +
|
|
||||||
WebAppUtils.getRMWebAppURLWithoutScheme(getConfig()));
|
|
||||||
LOG.info("MiniMRYARN HistoryServer address: " +
|
|
||||||
getConfig().get(JHAdminConfig.MR_HISTORY_ADDRESS));
|
|
||||||
LOG.info("MiniMRYARN HistoryServer web address: "
|
|
||||||
+ getResolvedMRHistoryWebAppURLWithoutScheme(getConfig(),
|
|
||||||
MRWebAppUtil.getJHSHttpPolicy() == HttpConfig.Policy.HTTPS_ONLY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user