Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 f871d9521 -> a249a3390
  refs/heads/trunk 4fa08766f -> d0c5fe041


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/a249a339
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a249a339
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a249a339

Branch: refs/heads/branch-2.5
Commit: a249a3390eb7e633b3e61004a9e73da66af97eac
Parents: f871d95
Author: Renjith Kamath <[email protected]>
Authored: Mon Dec 26 14:52:33 2016 +0530
Committer: Renjith Kamath <[email protected]>
Committed: Mon Dec 26 14:52:33 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/a249a339/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

Reply via email to