YARN-4938. MiniYarnCluster should not request transitionToActive to RM on non-HA environment. Contributed by Eric Badger.
(cherry picked from commit 1b78b2ba17cffdd19ae056555dd7f89b7a3eb06a) (cherry picked from commit 88556294e20f118ecd8295f492b9617da413c83d)
This commit is contained in:
parent
801c95c1cc
commit
c748ced474
@ -124,6 +124,9 @@ Release 2.7.3 - UNRELEASED
|
||||
YARN-4917. Fix typos in documentation of Capacity Scheduler.
|
||||
(Takashi Ohnishi via iwasakims)
|
||||
|
||||
YARN-4938. MiniYarnCluster should not request transitionToActive to RM
|
||||
on non-HA environment. (Eric Badger via aajisaka)
|
||||
|
||||
Release 2.7.2 - 2016-01-25
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -445,7 +445,7 @@ protected synchronized void serviceInit(Configuration conf)
|
||||
@Override
|
||||
protected synchronized void serviceStart() throws Exception {
|
||||
startResourceManager(index);
|
||||
if(index == 0) {
|
||||
if(index == 0 && resourceManagers[index].getRMContext().isHAEnabled()) {
|
||||
resourceManagers[index].getRMContext().getRMAdminService()
|
||||
.transitionToActive(new HAServiceProtocol.StateChangeRequestInfo(
|
||||
HAServiceProtocol.RequestSource.REQUEST_BY_USER_FORCED));
|
||||
|
Loading…
x
Reference in New Issue
Block a user