You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by pr...@apache.org on 2017/05/03 15:59:33 UTC
svn commit: r1793668 -
/zeppelin/site/docs/0.8.0-SNAPSHOT/interpreter/jdbc.html
Author: prabhjyotsingh
Date: Wed May 3 15:59:32 2017
New Revision: 1793668
URL: http://svn.apache.org/viewvc?rev=1793668&view=rev
Log:
Changes related to ZEPPELIN-2367: Hive JDBC proxy user option should be avail even without kerberos
Modified:
zeppelin/site/docs/0.8.0-SNAPSHOT/interpreter/jdbc.html
Modified: zeppelin/site/docs/0.8.0-SNAPSHOT/interpreter/jdbc.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.8.0-SNAPSHOT/interpreter/jdbc.html?rev=1793668&r1=1793667&r2=1793668&view=diff
==============================================================================
--- zeppelin/site/docs/0.8.0-SNAPSHOT/interpreter/jdbc.html (original)
+++ zeppelin/site/docs/0.8.0-SNAPSHOT/interpreter/jdbc.html Wed May 3 15:59:32 2017
@@ -319,7 +319,7 @@ The JDBC interpreter properties are defi
<tr>
<td>default.precode</td>
<td></td>
- <td>Some SQL which executes while opening connection</td>
+ <td>Some SQL which executes every time after initialization of the interpreter (see [Binding mode](../manual/interpreters.md#interpreter-binding-mode))</td>
</tr>
<tr>
<td>default.completer.schemaFilters</td>
@@ -712,12 +712,11 @@ So you don't need to type this prefi
<td>hive_password</td>
</tr>
<tr>
- <td>hive.proxy.user</td>
- <td>true or false</td>
+ <td>default.proxy.user.property</td>
+ <td>Example value: hive.server2.proxy.user</td>
+ </tr>
</table>
-<p>Connection to Hive JDBC with a proxy user can be disabled with <code>hive.proxy.user</code> property (set to true by default)</p>
-
<p><a href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-JDBC">Apache Hive 1 JDBC Driver Docs</a>
<a href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-JDBC">Apache Hive 2 JDBC Driver Docs</a></p>
@@ -740,6 +739,25 @@ So you don't need to type this prefi
<p><a href="https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc">Maven Repository : org.apache.hive:hive-jdbc</a></p>
+<h5>Impersonation</h5>
+
+<p>When Zeppelin server is running with authentication enabled, then the interpreter can utilize Hive's user proxy feature i.e. send extra parameter for creating and running a session ("hive.server2.proxy.user=": "${loggedInUser}"). This is particularly useful when multiple users are sharing a notebooks.</p>
+
+<p>To enable this set following:
+ - <code>zeppelin.jdbc.auth.type</code> as <code>SIMPLE</code> or <code>KERBEROS</code> (if required) in the interpreter setting.
+ - <code>${prefix}.proxy.user.property</code> as <code>hive.server2.proxy.user</code>
+ Example configuration</p>
+
+<p><em>Properties</em></p>
+
+<p>| name | value |
+ |:------------------------- |:--------------------------------------------------------------------------------------------------|
+ | hive.driver | org.apache.hive.jdbc.HiveDriver |
+ | hive.password | |
+ | hive.url | jdbc:hive2://hive-server-host:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2 |
+ | hive.proxy.user.property | hive.proxy.user.property |
+ | zeppelin.jdbc.auth.type | SIMPLE |</p>
+
<h3>Apache Phoenix</h3>
<p>Phoenix supports <code>thick</code> and <code>thin</code> connection types:</p>