Skip to content

Commit

Permalink
Pass the actual iterable from the option to get files (apache-spark-o…
Browse files Browse the repository at this point in the history
…n-k8s#139)

* Pass the actual iterable from the option to get files

* Split the original instance variables

* Explicitly set the type of the array
  • Loading branch information
mccheah authored and Puneet Loya committed Mar 7, 2019
1 parent 0d01c15 commit 21423d6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ private[spark] class Client(
private val uiPort = sparkConf.getInt("spark.ui.port", DEFAULT_UI_PORT)
private val driverSubmitTimeoutSecs = sparkConf.get(KUBERNETES_DRIVER_SUBMIT_TIMEOUT)
private val sparkFiles = sparkConf.getOption("spark.files")
.map(_.split(","))
.getOrElse(Array.empty[String])
private val sparkJars = sparkConf.getOption("spark.jars")
.map(_.split(","))
.getOrElse(Array.empty[String])

private val waitForAppCompletion: Boolean = sparkConf.get(WAIT_FOR_APP_COMPLETION)

Expand Down

0 comments on commit 21423d6

Please sign in to comment.