YARN-4938. MiniYarnCluster should not request transitionToActive to RM on non-HA environment. Contributed by Eric Badger.
(cherry picked from commit1b78b2ba17
) (cherry picked from commit88556294e2
)
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 @@ public class MiniYARNCluster extends CompositeService {
|
|||
@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…
Reference in New Issue