Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BAF8F1888D for ; Wed, 17 Jun 2015 18:51:46 +0000 (UTC) Received: (qmail 22429 invoked by uid 500); 17 Jun 2015 18:51:46 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 22400 invoked by uid 500); 17 Jun 2015 18:51:46 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 22391 invoked by uid 99); 17 Jun 2015 18:51:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 18:51:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6FA6FDFF98; Wed, 17 Jun 2015 18:51:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: srimanth@apache.org To: commits@ambari.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Wed Jun 17 11:15:51 2015 -0700 Committer: Srimanth Gunturi 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."\