ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject ambari git commit: AMBARI-11261. Stack advisor should handle when 'ranger-hive-plugin-properties' not provided
Date Wed, 27 May 2015 19:43:16 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 6ce8f6078 -> e2a0f817c


AMBARI-11261. Stack advisor should handle when 'ranger-hive-plugin-properties' not provided


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

Branch: refs/heads/trunk
Commit: e2a0f817c6084ad545f7a2c109a347541d8ae17b
Parents: 6ce8f60
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Wed May 27 12:27:09 2015 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Wed May 27 12:37:12 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/e2a0f817/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
index a892c8d..f253057 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
@@ -165,7 +165,7 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
 
     #Adding Ranger Plugin logic here
     ranger_plugin_properties = getSiteProperties(configurations, "ranger-hbase-plugin-properties")
-    ranger_plugin_enabled = ranger_plugin_properties['ranger-hbase-plugin-enabled']
+    ranger_plugin_enabled = ranger_plugin_properties['ranger-hbase-plugin-enabled'] if ranger_plugin_properties
else 'No'
     prop_name = 'hbase.security.authorization'
     prop_val = "true"
     servicesList = [service["StackServices"]["service_name"] for service in services["services"]]


Mime
View raw message