svn merge -c 1505771 FIXES: MAPREDUCE-5404. HSAdminServer does not use ephemeral ports in minicluster mode. Contributed by Ted Yu
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1505772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5758018f1b
commit
726533a741
|
@ -27,6 +27,9 @@ Release 2.3.0 - UNRELEASED
|
|||
MAPREDUCE-5380. Invalid mapred command should return non-zero exit code
|
||||
(Stephen Chu via jlowe)
|
||||
|
||||
MAPREDUCE-5404. HSAdminServer does not use ephemeral ports in minicluster
|
||||
mode (Ted Yu via jlowe)
|
||||
|
||||
Release 2.1.1-beta - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -151,11 +151,14 @@ public class MiniMRYarnCluster extends MiniYARNCluster {
|
|||
if (!getConfig().getBoolean(
|
||||
JHAdminConfig.MR_HISTORY_MINICLUSTER_FIXED_PORTS,
|
||||
JHAdminConfig.DEFAULT_MR_HISTORY_MINICLUSTER_FIXED_PORTS)) {
|
||||
String hostname = MiniYARNCluster.getHostname();
|
||||
// pick free random ports.
|
||||
getConfig().set(JHAdminConfig.MR_HISTORY_ADDRESS,
|
||||
MiniYARNCluster.getHostname() + ":0");
|
||||
hostname + ":0");
|
||||
getConfig().set(JHAdminConfig.MR_HISTORY_WEBAPP_ADDRESS,
|
||||
MiniYARNCluster.getHostname() + ":0");
|
||||
hostname + ":0");
|
||||
getConfig().set(JHAdminConfig.JHS_ADMIN_ADDRESS,
|
||||
hostname + ":0");
|
||||
}
|
||||
historyServer = new JobHistoryServer();
|
||||
historyServer.init(getConfig());
|
||||
|
|
Loading…
Reference in New Issue