Skip to content
Snippets Groups Projects
Commit 7c27d075 authored by Reynold Xin's avatar Reynold Xin
Browse files

[SPARK-16812] Open up SparkILoop.getAddedJars

## What changes were proposed in this pull request?
This patch makes SparkILoop.getAddedJars a public developer API. It is a useful function to get the list of jars added.

## How was this patch tested?
N/A - this is a simple visibility change.

Author: Reynold Xin <rxin@databricks.com>

Closes #14417 from rxin/SPARK-16812.
parent 957a8ab3
No related branches found
No related tags found
No related merge requests found
......@@ -1059,7 +1059,8 @@ class SparkILoop(
@deprecated("Use `process` instead", "2.9.0")
private def main(settings: Settings): Unit = process(settings)
private[repl] def getAddedJars(): Array[String] = {
@DeveloperApi
def getAddedJars(): Array[String] = {
val conf = new SparkConf().setMaster(getMaster())
val envJars = sys.env.get("ADD_JARS")
if (envJars.isDefined) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment