AMBARI-25736: Fix BIGTOP stack_advisor Invalid (#3370)
diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py
index e7883d3..b37fed1 100644
--- a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py
@@ -29,19 +29,19 @@
from stack_advisor import DefaultStackAdvisor
-class BIGTOP32StackAdvisor(DefaultStackAdvisor):
+class BIGTOP320StackAdvisor(DefaultStackAdvisor):
def __init__(self):
- super(BIGTOP32StackAdvisor, self).__init__()
- self.initialize_logger("BIGTOP32StackAdvisor")
+ super(BIGTOP320StackAdvisor, self).__init__()
+ self.initialize_logger("BIGTOP320StackAdvisor")
def getComponentLayoutValidations(self, services, hosts):
"""Returns array of Validation objects about issues with hostnames components assigned to"""
- items = super(BIGTOP32StackAdvisor, self).getComponentLayoutValidations(services, hosts)
+ items = super(BIGTOP320StackAdvisor, self).getComponentLayoutValidations(services, hosts)
# Validating NAMENODE and SECONDARY_NAMENODE are on different hosts if possible
# Use a set for fast lookup
- hostsSet = set(super(BIGTOP32StackAdvisor, self).getActiveHosts([host["Hosts"] for host in hosts["items"]])) #[host["Hosts"]["host_name"] for host in hosts["items"]]
+ hostsSet = set(super(BIGTOP320StackAdvisor, self).getActiveHosts([host["Hosts"] for host in hosts["items"]])) #[host["Hosts"]["host_name"] for host in hosts["items"]]
hostsCount = len(hostsSet)
componentsListList = [service["components"] for service in services["services"]]