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-11982. Error occured in stack advisor while creating cluster - hive.security.authorization.manager (srimanth)
Date Wed, 17 Jun 2015 18:51:46 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 2580916a6 -> 2e1bd4ef1


AMBARI-11982. Error occured in stack advisor while creating cluster - hive.security.authorization.manager
(srimanth)


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

Branch: refs/heads/branch-2.1
Commit: 2e1bd4ef1c02974f2c3035ffa15f617bab342fd6
Parents: 2580916
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Wed Jun 17 11:15:51 2015 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Wed Jun 17 11:51:30 2015 -0700

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.2/services/stack_advisor.py  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2e1bd4ef/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
index 2b68442..a9bedeb 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
@@ -863,14 +863,14 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
       elif not ranger_plugin_enabled:
         prop_name = 'hive.security.authorization.manager'
         prop_val = "org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory"
-        if hive_server2[prop_name] != prop_val:
+        if prop_name in hive_server2 and hive_server2[prop_name] != prop_val:
           validationItems.append({"config-name": prop_name,
                                   "item": self.getWarnItem(
                                   "If Ranger Hive Plugin is disabled."\
                                   " {0} needs to be set to {1}".format(prop_name,prop_val))})
         prop_name = 'hive.security.authenticator.manager'
         prop_val = "org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator"
-        if hive_server2[prop_name] != prop_val:
+        if prop_name in hive_server2 and hive_server2[prop_name] != prop_val:
           validationItems.append({"config-name": prop_name,
                                   "item": self.getWarnItem(
                                   "If Ranger Hive Plugin is disabled."\


Mime
View raw message