ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gau...@apache.org
Subject ambari git commit: AMBARI-15906.1 Make Ranger TagSync to be installed as a slave and optional - Fix missing variable in stack_advisor.py (gautam)
Date Tue, 19 Apr 2016 10:42:17 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 1042f1cd8 -> 8aac6a10b


AMBARI-15906.1 Make Ranger TagSync to be installed as a slave and
optional - Fix missing variable in stack_advisor.py (gautam)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8aac6a10
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8aac6a10
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8aac6a10

Branch: refs/heads/trunk
Commit: 8aac6a10b065589f11bfc24c305a04c9253b9fe2
Parents: 1042f1c
Author: Gautam Borad <gautam@apache.org>
Authored: Tue Apr 19 16:10:21 2016 +0530
Committer: Gautam Borad <gautam@apache.org>
Committed: Tue Apr 19 16:10:21 2016 +0530

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.5/services/stack_advisor.py   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8aac6a10/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
index eee2fa2..4da21fa 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
@@ -451,6 +451,7 @@ class HDP25StackAdvisor(HDP24StackAdvisor):
   def validateRangerTagsyncConfigurations(self, properties, recommendedDefaults, configurations,
services, hosts):
     ranger_tagsync_properties = getSiteProperties(configurations, "ranger-tagsync-site")
     validationItems = []
+    servicesList = [service["StackServices"]["service_name"] for service in services["services"]]
 
     has_ranger_tagsync = False
     if "RANGER" in servicesList:
@@ -479,4 +480,4 @@ class HDP25StackAdvisor(HDP24StackAdvisor):
     hosts_for_component = []
     if serviceName in servicesList:
       hosts_for_component = [component["hostnames"] for component in componentsList if component["component_name"]
== componentName][0]
-    return hosts_for_component
\ No newline at end of file
+    return hosts_for_component


Mime
View raw message