Skip to content

Commit

Permalink
Pass the actual iterable from the option to get files (apache#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
  • Loading branch information
mccheah authored and foxish committed Jul 24, 2017
1 parent 6f27fb3 commit 6d179a6
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 6d179a6

Please sign in to comment.