YARN-4938. MiniYarnCluster should not request transitionToActive to RM on non-HA environment. Contributed by Eric Badger.
(cherry picked from commit 1b78b2ba17
)
This commit is contained in:
parent
17c4f34b3d
commit
88556294e2
|
@ -462,7 +462,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