Skip to content
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

Adding extra libraries to livy #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion docs/interpreter/livy.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ We added some common configurations for spark, and you can set any configuration
This link contains all spark configurations: http://spark.apache.org/docs/latest/configuration.html#available-properties.
And instead of starting property with `spark.` it should be replaced with `livy.spark.`.
Example: `spark.master` to `livy.spark.master`

<table class="table-configuration">
<tr>
<th>Property</th>
Expand Down Expand Up @@ -102,8 +102,31 @@ Example: `spark.master` to `livy.spark.master`
<td></td>
<td>Upper bound for the number of executors.</td>
</tr>
<tr>
<td>livy.spark.jars.packages</td>
<td></td>
<td>Adding extra libraries to livy interpreter</td>
</tr>
</table>

## Adding External libraries
You can load dynamic library to livy interpreter by set `livy.spark.jars.packages` property to comma-separated list of maven coordinates of jars to include on the driver and executor classpaths. The format for the coordinates should be groupId:artifactId:version.

Example

<table class="table-configuration">
<tr>
<th>Property</th>
<th>Example</th>
<th>Description</th>
</tr>
<tr>
<td>livy.spark.jars.packages</td>
<td>io.spray:spray-json_2.10:1.3.1</td>
<td>Adding extra libraries to livy interpreter</td>
</tr>
</table>

## How to use
Basically, you can use

Expand Down
5 changes: 5 additions & 0 deletions livy/src/main/resources/interpreter-setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
"propertyName": "zeppelin.livy.keytab",
"defaultValue": "",
"description": "Kerberos keytab to authenticate livy"
},
"livy.spark.jars.packages": {
"propertyName": "livy.spark.jars.packages",
"defaultValue": "",
"description": "Adding extra libraries to livy interpreter"
}
}
},
Expand Down