-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-440 HiveInterpreter with multiple configuration #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
97bfa65
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 87ee87a
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul df9f3cb
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 9293d78
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 85e4914
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 8aa7601
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 5fa4fd7
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 2616050
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul f2b61c0
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul dcb65ae
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 4867c6f
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul b4f1a1c
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul 4e01265
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul fc33a30
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul d68bcc5
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul af4c64b
ZEPPELIN-440 HiveInterpreter with multiple configuration
jongyoul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| --- | ||
| layout: page | ||
| title: "Hive Interpreter" | ||
| description: "" | ||
| group: manual | ||
| --- | ||
| {% include JB/setup %} | ||
|
|
||
|
|
||
| ## Hive Interpreter for Apache Zeppelin | ||
|
|
||
| ### Configuration | ||
|
|
||
| <br/> | ||
| <table class="table-configuration"> | ||
| <tr> | ||
| <th>Property</th> | ||
| <th>Default</th> | ||
| <th>Description</th> | ||
| </tr> | ||
| <tr> | ||
| <td>default.driver</td> | ||
| <td>org.apache.hive.jdbc.HiveDriver</td> | ||
| <td>Class path of JDBC driver</td> | ||
| </tr> | ||
| <tr> | ||
| <td>default.url</td> | ||
| <td>jdbc:hive2://localhost:10000</td> | ||
| <td>Url for connection</td> | ||
| </tr> | ||
| <tr> | ||
| <td>default.user</td> | ||
| <td></td> | ||
| <td><b>(Optional)</b>Username of the connection</td> | ||
| </tr> | ||
| <tr> | ||
| <td>default.password</td> | ||
| <td></td> | ||
| <td><b>(Optional)</b>Password of the connection</td> | ||
| </tr> | ||
| <tr> | ||
| <td>default.xxx</td> | ||
| <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 `%hive(${prefix})`</td> | ||
| </tr> | ||
| <tr> | ||
| <td>${prefix}.url</td> | ||
| <td></td> | ||
| <td>Url of `%hive(${prefix})`</td> | ||
| </tr> | ||
| <tr> | ||
| <td>${prefix}.user</td> | ||
| <td></td> | ||
| <td><b>(Optional)</b>Username of the connection of `%hive(${prefix})`</td> | ||
| </tr> | ||
| <tr> | ||
| <td>${prefix}.password</td> | ||
| <td></td> | ||
| <td><b>(Optional)</b>Password of the connection of `%hive(${prefix})`</td> | ||
| </tr> | ||
| <tr> | ||
| <td>${prefix}.xxx</td> | ||
| <td></td> | ||
| <td><b>(Optional)</b>Other properties used by the driver of `%hive(${prefix})`</td> | ||
| </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})`. | ||
|
|
||
| ### How to use | ||
|
|
||
| Basically, you can use | ||
|
|
||
| ```sql | ||
| %hive | ||
| 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 | ||
|
|
||
| You can leverage [Zeppelin Dynamic Form]({{BASE_PATH}}/manual/dynamicform.html) inside your queries. You can use both the `text input` and `select form` parameterization features | ||
|
|
||
| ```sql | ||
| %hive | ||
| SELECT ${group_by}, count(*) as count | ||
| FROM retail_demo.order_lineitems_pxf | ||
| GROUP BY ${group_by=product_id,product_id|product_name|customer_id|store_id} | ||
| ORDER BY count ${order=DESC,DESC|ASC} | ||
| LIMIT ${limit=10}; | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixcheung Thanks for fixing them.
@Leemoonsoo Is is ok? I'm not good at writing docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good