You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2015/06/25 15:42:02 UTC

ambari git commit: AMBARI-11982 Error occured in stack advisor while creating cluster - hive.security.authorization.manager - HDP2.3 fix (srimanth)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 0dc26cecc -> 0ad59c92c


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


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

Branch: refs/heads/branch-2.1
Commit: 0ad59c92c100e72877cc2444a904151cf1c70dd6
Parents: 0dc26ce
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Wed Jun 24 19:03:26 2015 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Thu Jun 25 06:41:27 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/0ad59c92/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 4c14b83..2f84be1 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
@@ -258,14 +258,14 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
       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."\