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 1329818907 for ; Thu, 27 Aug 2015 18:15:22 +0000 (UTC) Received: (qmail 10207 invoked by uid 500); 27 Aug 2015 18:15:22 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 10177 invoked by uid 500); 27 Aug 2015 18:15:21 -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 10168 invoked by uid 99); 27 Aug 2015 18:15:21 -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; Thu, 27 Aug 2015 18:15:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BE64BE7E54; Thu, 27 Aug 2015 18:15:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vbrodetskyi@apache.org To: commits@ambari.apache.org Message-Id: <9a49a0fb8e054c7eb4600ac7737be995@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-12897. SQLA: Hive Metastore fails after start + stack advisor potential problem.(vbrodetskyi) Date: Thu, 27 Aug 2015 18:15:21 +0000 (UTC) Repository: ambari Updated Branches: refs/heads/trunk d02fa7616 -> a71c52838 AMBARI-12897. SQLA: Hive Metastore fails after start + stack advisor potential problem.(vbrodetskyi) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a71c5283 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a71c5283 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a71c5283 Branch: refs/heads/trunk Commit: a71c52838207b2846cb04e02ce34d80aea44a206 Parents: d02fa76 Author: Vitaly Brodetskyi Authored: Thu Aug 27 21:15:42 2015 +0300 Committer: Vitaly Brodetskyi Committed: Thu Aug 27 21:15:42 2015 +0300 ---------------------------------------------------------------------- .../src/main/resources/stacks/HDP/2.3/services/stack_advisor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/a71c5283/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 9a6602a..2d07726 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 @@ -161,7 +161,6 @@ class HDP23StackAdvisor(HDP22StackAdvisor): super(HDP23StackAdvisor, self).recommendHIVEConfigurations(configurations, clusterData, services, hosts) putHiveSiteProperty = self.putProperty(configurations, "hive-site", services) putHiveServerProperty = self.putProperty(configurations, "hiveserver2-site", services) - hive_site_properties = getSiteProperties(configurations, "hive-site") putHiveSitePropertyAttribute = self.putPropertyAttribute(configurations, "hive-site") servicesList = [service["StackServices"]["service_name"] for service in services["services"]] # hive_security_authorization == 'ranger' @@ -181,8 +180,8 @@ class HDP23StackAdvisor(HDP22StackAdvisor): putHiveSiteProperty('hive.tez.java.opts', "-server -Djava.net.preferIPv4Stack=true -XX:NewRatio=8 -XX:+UseNUMA " + jvmGCParams + " -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps") # if hive using sqla db, then we should add DataNucleus property - sqla_db_used = 'javax.jdo.option.ConnectionDriverName' in hive_site_properties and \ - hive_site_properties['javax.jdo.option.ConnectionDriverName'] == 'sap.jdbc4.sqlanywhere.IDriver' + sqla_db_used = 'hive-site' in services['configurations'] and 'javax.jdo.option.ConnectionDriverName' in services['configurations']['hive-site']['properties'] and \ + services['configurations']['hive-site']['properties']['javax.jdo.option.ConnectionDriverName'] == 'sap.jdbc4.sqlanywhere.IDriver' if sqla_db_used: putHiveSiteProperty('datanucleus.rdbms.datastoreAdapterClassName','org.datanucleus.store.rdbms.adapter.SQLAnywhereAdapter') else: