Skip to content

Commit

Permalink
Pass the actual iterable from the option to get files (#139)
Browse files Browse the repository at this point in the history
* Pass the actual iterable from the option to get files

* Split the original instance variables

* Explicitly set the type of the array

(cherry picked from commit 913a60e)
  • Loading branch information
mccheah authored and ash211 committed Feb 23, 2017
1 parent 123cd0f commit edb49da
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 edb49da

Please sign in to comment.