ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
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 GMT
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 <vbrodetskyi@hortonworks.com>
Authored: Thu Aug 27 21:15:42 2015 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
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:


Mime
View raw message