You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rk...@apache.org on 2016/12/26 09:24:37 UTC

[2/2] ambari git commit: AMBARI-19290 Refactor jdbc-like interpreter example properties and improve JDBC in Zeppelin service (Prabhjyot Singh via r-kamath)

AMBARI-19290 Refactor jdbc-like interpreter example properties and improve JDBC in Zeppelin service (Prabhjyot Singh via r-kamath)

- changes introduced in ZEPPELIN-1489


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

Branch: refs/heads/trunk
Commit: d0c5fe041335c40fcd38cd4cbeeda8aebf84b703
Parents: 4fa0876
Author: Renjith Kamath <re...@gmail.com>
Authored: Mon Dec 26 14:52:33 2016 +0530
Committer: Renjith Kamath <re...@gmail.com>
Committed: Mon Dec 26 14:54:20 2016 +0530

----------------------------------------------------------------------
 .../ZEPPELIN/0.6.0.2.5/package/scripts/master.py              | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d0c5fe04/ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py b/ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py
index cfd6963..0bcc282 100644
--- a/ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py
+++ b/ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py
@@ -286,6 +286,9 @@ class Master(Script):
       if interpreter['group'] == 'jdbc':
         interpreter['dependencies'] = []
         if params.hive_server_host:
+          interpreter['properties']['hive.driver'] = 'org.apache.hive.jdbc.HiveDriver'
+          interpreter['properties']['hive.user'] = 'hive'
+          interpreter['properties']['hive.password'] = ''
           if params.hive_server2_support_dynamic_service_discovery:
             interpreter['properties']['hive.url'] = 'jdbc:hive2://' + \
                                                  params.hive_zookeeper_quorum + \
@@ -303,6 +306,10 @@ class Master(Script):
 
         if params.zookeeper_znode_parent \
                 and params.hbase_zookeeper_quorum:
+            interpreter['properties']['phoenix.driver'] = 'org.apache.phoenix.jdbc.PhoenixDriver'
+            interpreter['properties']['phoenix.hbase.client.retries.number'] = '1'
+            interpreter['properties']['phoenix.user'] = 'phoenixuser'
+            interpreter['properties']['phoenix.password'] = ''
             interpreter['properties']['phoenix.url'] = "jdbc:phoenix:" + \
                                                     params.hbase_zookeeper_quorum + ':' + \
                                                     params.zookeeper_znode_parent