Bladeren bron

AMBARI-5429 - Host state is always UNHEALTHY even if all services STARTED

Artem Baranchuk 11 jaren geleden
bovenliggende
commit
e69c9a3c7a

+ 1 - 0
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/ClusterDefinition.java

@@ -315,6 +315,7 @@ public class ClusterDefinition {
         if (hostEntry.getKey().equals(hostName)) {
           Set<String> componentNames = hostEntry.getValue();
           for (String componentName : componentNames) {
+            if (isClientOnlyComponent(componentName)) continue;
             if (stateProvider.getRunningState(hostName, componentName) == StateProvider.State.Unknown) {
               return "UNHEALTHY";
             }

+ 1 - 0
contrib/ambari-scom/pom.xml

@@ -61,6 +61,7 @@
                         <exclude>**/*.rtf</exclude>
                         <exclude>**/*.snk</exclude>
                         <exclude>**/*.cs</exclude>
+                        <exclude>**/*.json</exclude>
                     </excludes>
                 </configuration>
                 <executions>