You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/09/26 03:34:20 UTC
[ambari] branch trunk updated: AMBARI-25736: Fix BIGTOP stack_advisor Invalid (#3370)
This is an automated email from the ASF dual-hosted git repository.
wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8a1d1e72a5 AMBARI-25736: Fix BIGTOP stack_advisor Invalid (#3370)
8a1d1e72a5 is described below
commit 8a1d1e72a59f96aa7c775ca101a44a60737b7002
Author: timyuer <52...@qq.com>
AuthorDate: Mon Sep 26 11:34:15 2022 +0800
AMBARI-25736: Fix BIGTOP stack_advisor Invalid (#3370)
---
.../resources/stacks/BIGTOP/3.2.0/services/stack_advisor.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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 e7883d3484..b37fed126a 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 resource_management.libraries.functions.mounted_dirs_helper import get_moun
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"]]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org