Skip to content

Commit

Permalink
[minor] Fix JDBC doc after apache#2229
Browse files Browse the repository at this point in the history
### What is this PR for?
Fix JDBC doc after apache#2229.

### What type of PR is it?
[Bug Fix]

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update?
* Is there breaking changes for older versions?
* Does this needs documentation?

Author: Prabhjyot Singh <[email protected]>

Closes apache#2314 from prabhjyotsingh/minor/jdbc-doc-zeppelin-2367 and squashes the following commits:

e54a3a2 [Prabhjyot Singh] @AhyoungRyu  review comments
0f396ac [Prabhjyot Singh] fix doc for zeppelin-2367
  • Loading branch information
prabhjyotsingh committed May 8, 2017
1 parent 246c3d0 commit 28ef8aa
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions docs/interpreter/jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,23 +534,41 @@ Here are some examples you can refer to. Including the below connectors, you can
[Maven Repository : org.apache.hive:hive-jdbc](https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc)

##### Impersonation
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.
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 notebook.

To enable this set following:

- `zeppelin.jdbc.auth.type` as `SIMPLE` or `KERBEROS` (if required) in the interpreter setting.
- `${prefix}.proxy.user.property` as `hive.server2.proxy.user`
Example configuration

*Properties*

| 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 |

##### Sample configuration
<table class="table-configuration">
<tr>
<th>Name</th>
<th>Value</th>
</tr>
<tr>
<td>hive.driver</td>
<td>org.apache.hive.jdbc.HiveDriver</td>
</tr>
<tr>
<td>hive.password</td>
<td></td>
</tr>
<tr>
<td>hive.url</td>
<td>jdbc:hive2://hive-server-host:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2</td>
</tr>
<tr>
<td>hive.proxy.user.property</td>
<td>hive.server2.proxy.user</td>
</tr>
<tr>
<td>zeppelin.jdbc.auth.type</td>
<td>SIMPLE</td>
</tr>
</table>


### Apache Phoenix
Expand Down

0 comments on commit 28ef8aa

Please sign in to comment.