Explorar o código

AMBARI-2874. MapReduce2 service check should have a dependency on the result of Yarn service check. (smohanty)

Sumit Mohanty %!s(int64=11) %!d(string=hai) anos
pai
achega
da8d55e0b5

+ 3 - 1
ambari-server/src/main/java/org/apache/ambari/server/metadata/RoleCommandOrder.java

@@ -337,7 +337,9 @@ public class RoleCommandOrder {
       addDependency(Role.MAPREDUCE2_SERVICE_CHECK, RoleCommand.EXECUTE,
         Role.RESOURCEMANAGER, RoleCommand.START);
       addDependency(Role.MAPREDUCE2_SERVICE_CHECK, RoleCommand.EXECUTE,
-        Role.HISTORYSERVER, RoleCommand.START);
+          Role.HISTORYSERVER, RoleCommand.START);
+      addDependency(Role.MAPREDUCE2_SERVICE_CHECK, RoleCommand.EXECUTE,
+          Role.YARN_SERVICE_CHECK, RoleCommand.EXECUTE);
       addDependency(Role.YARN_SERVICE_CHECK, RoleCommand.EXECUTE,
         Role.NODEMANAGER, RoleCommand.START);
       addDependency(Role.YARN_SERVICE_CHECK, RoleCommand.EXECUTE,