Skip to content

Commit d7f6818

Browse files
committed
Adding livy.spark.jars.packages property
1 parent 98090ab commit d7f6818

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

docs/interpreter/livy.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,14 @@ Example: `spark.master` to `livy.spark.master`
103103
<td>Upper bound for the number of executors.</td>
104104
</tr>
105105
<tr>
106-
<td>livy.spark.executor.extraClassPath</td>
106+
<td>livy.spark.jars.packages</td>
107107
<td></td>
108-
<td>Adding extra libraries to the executors</td>
108+
<td>Adding extra libraries to livy interpreter</td>
109109
</tr>
110-
<tr>
111-
<td>livy.spark.driver.extraClassPath</td>
112-
<td></td>
113-
<td>Adding extra libraries to the driver</td>
114-
</tr>
115110
</table>
116111

117112
## 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`
113+
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.
119114

120115
Example
121116

@@ -126,15 +121,10 @@ Example
126121
<th>Description</th>
127122
</tr>
128123
<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>
124+
<td>livy.spark.jars.packages</td>
125+
<td>io.spray:spray-json_2.10:1.3.1</td>
126+
<td>Adding extra libraries to livy interpreter</td>
132127
</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>
138128
</table>
139129

140130
## How to use

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,10 @@
8282
"defaultValue": "",
8383
"description": "Kerberos keytab to authenticate livy"
8484
},
85-
"livy.spark.executor.extraClassPath": {
86-
"propertyName": "livy.spark.executor.extraClassPath",
85+
"livy.spark.jars.packages": {
86+
"propertyName": "livy.spark.jars.packages",
8787
"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"
88+
"description": "Adding extra libraries to livy interpreter"
9489
}
9590
}
9691
},

0 commit comments

Comments
 (0)