Repository: ambari Updated Branches: refs/heads/trunk 8f598c552 -> 97d796de3
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/97d796de Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/97d796de Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/97d796de Branch: refs/heads/trunk Commit: 97d796de331b381f989b62cfe0a0888643969134 Parents: 8f598c5 Author: Srimanth Gunturi <[email protected]> Authored: Wed Jun 17 11:15:51 2015 -0700 Committer: Srimanth Gunturi <[email protected]> Committed: Wed Jun 17 11:52:04 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/97d796de/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."\
