Skip to content

Commit 98090ab

Browse files
committed
Adding external libraries to livy
1 parent 03a1e80 commit 98090ab

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

docs/interpreter/livy.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We added some common configurations for spark, and you can set any configuration
3030
This link contains all spark configurations: http://spark.apache.org/docs/latest/configuration.html#available-properties.
3131
And instead of starting property with `spark.` it should be replaced with `livy.spark.`.
3232
Example: `spark.master` to `livy.spark.master`
33-
33+
3434
<table class="table-configuration">
3535
<tr>
3636
<th>Property</th>
@@ -102,8 +102,41 @@ Example: `spark.master` to `livy.spark.master`
102102
<td></td>
103103
<td>Upper bound for the number of executors.</td>
104104
</tr>
105+
<tr>
106+
<td>livy.spark.executor.extraClassPath</td>
107+
<td></td>
108+
<td>Adding extra libraries to the executors</td>
109+
</tr>
110+
<tr>
111+
<td>livy.spark.driver.extraClassPath</td>
112+
<td></td>
113+
<td>Adding extra libraries to the driver</td>
114+
</tr>
105115
</table>
106116

117+
## Adding External libraries
118+
You should put the libraries manually on the livy server and then set the paths of the libraries to those properties `livy.spark.executor.extraClassPath` and `livy.spark.driver.extraClassPath`
119+
120+
Example
121+
122+
<table class="table-configuration">
123+
<tr>
124+
<th>Property</th>
125+
<th>Default</th>
126+
<th>Description</th>
127+
</tr>
128+
<tr>
129+
<td>livy.spark.executor.extraClassPath</td>
130+
<td>path/to/jar1.jar:path/to/jar2.jar</td>
131+
<td>Adding extra libraries to the executors</td>
132+
</tr>
133+
<tr>
134+
<td>livy.spark.driver.extraClassPath</td>
135+
<td>path/to/jar1.jar:path/to/jar2.jar</td>
136+
<td>Adding extra libraries to the driver</td>
137+
<tr>
138+
</table>
139+
107140
## How to use
108141
Basically, you can use
109142

livy/src/main/resources/interpreter-setting.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@
8181
"propertyName": "zeppelin.livy.keytab",
8282
"defaultValue": "",
8383
"description": "Kerberos keytab to authenticate livy"
84+
},
85+
"livy.spark.executor.extraClassPath": {
86+
"propertyName": "livy.spark.executor.extraClassPath",
87+
"defaultValue": "",
88+
"description": "Adding extra libraries to the executors"
89+
},
90+
"livy.spark.driver.extraClassPath": {
91+
"propertyName": "livy.spark.driver.extraClassPath",
92+
"defaultValue": "",
93+
"description": "Adding extra libraries to the driver"
8494
}
8595
}
8696
},

0 commit comments

Comments
 (0)