Skip to content

Commit

Permalink
[ZEPPELIN-5493] Remove prefix in jdbc interpreter (apache#4463)
Browse files Browse the repository at this point in the history
* Remove prefix in jdbc interpreter

* update docs
  • Loading branch information
huage1994 authored Oct 28, 2022
1 parent 36aebad commit 679b3fb
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 241 deletions.
45 changes: 5 additions & 40 deletions docs/interpreter/hive.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.

## Important Notice

Hive Interpreter will be deprecated and merged into JDBC Interpreter.
Hive Interpreter has been deprecated and merged into JDBC Interpreter.
You can use Hive Interpreter by using JDBC Interpreter with same functionality.
See the example below of settings and dependencies.

Expand All @@ -36,19 +36,19 @@ See the example below of settings and dependencies.
<th>Value</th>
</tr>
<tr>
<td>hive.driver</td>
<td>default.driver</td>
<td>org.apache.hive.jdbc.HiveDriver</td>
</tr>
<tr>
<td>hive.url</td>
<td>default.url</td>
<td>jdbc:hive2://localhost:10000</td>
</tr>
<tr>
<td>hive.user</td>
<td>default.user</td>
<td>hiveUser</td>
</tr>
<tr>
<td>hive.password</td>
<td>default.password</td>
<td>hivePassword</td>
</tr>
</table>
Expand Down Expand Up @@ -102,31 +102,6 @@ See the example below of settings and dependencies.
<td></td>
<td><b>( Optional ) </b>Other properties used by the driver</td>
</tr>
<tr>
<td>${prefix}.driver</td>
<td></td>
<td>Driver class path of <code>%hive(${prefix})</code> </td>
</tr>
<tr>
<td>${prefix}.url</td>
<td></td>
<td>Url of <code>%hive(${prefix})</code> </td>
</tr>
<tr>
<td>${prefix}.user</td>
<td></td>
<td><b>( Optional ) </b>Username of the connection of <code>%hive(${prefix})</code> </td>
</tr>
<tr>
<td>${prefix}.password</td>
<td></td>
<td><b>( Optional ) </b>Password of the connection of <code>%hive(${prefix})</code> </td>
</tr>
<tr>
<td>${prefix}.xxx</td>
<td></td>
<td><b>( Optional ) </b>Other properties used by the driver of <code>%hive(${prefix})</code> </td>
</tr>
<tr>
<td>zeppelin.jdbc.hive.timeout.threshold</td>
<td>60000</td>
Expand All @@ -144,8 +119,6 @@ See the example below of settings and dependencies.
</tr>
</table>

This interpreter provides multiple configuration with `${prefix}`. User can set a multiple connection properties by this prefix. It can be used like `%hive(${prefix})`.

## Overview

The [Apache Hive](https://hive.apache.org/) ™ data warehouse software facilitates querying and managing large datasets
Expand All @@ -162,14 +135,6 @@ Basically, you can use
select * from my_table;
```

or

```sql
%hive(etl)
-- 'etl' is a ${prefix}
select * from my_table;
```

You can also run multiple queries up to 10 by default. Changing these settings is not implemented yet.

### Apply Zeppelin Dynamic Forms
Expand Down
8 changes: 4 additions & 4 deletions docs/interpreter/jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -722,16 +722,16 @@ See [User Impersonation in interpreter](../usage/interpreter/user_impersonation.
<th>Value</th>
</tr>
<tr>
<td>hive.driver</td>
<td>default.driver</td>
<td>org.apache.hive.jdbc.HiveDriver</td>
</tr>
<tr>
<td>hive.url</td>
<td>default.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>
<td>default.proxy.user.property</td>
<td>default.server2.proxy.user</td>
</tr>
<tr>
<td>zeppelin.jdbc.auth.type</td>
Expand Down
Loading

0 comments on commit 679b3fb

Please sign in to comment.