Skip to content
Snippets Groups Projects
Commit a30fac16 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #883 from alig/master

Don't require the spark home environment variable to be set for standalone mode (change needed by SIMR)
parents 03cc7650 250bddc2
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,7 @@ private[spark] class SparkDeploySchedulerBackend(
StandaloneSchedulerBackend.ACTOR_NAME)
val args = Seq(driverUrl, "{{EXECUTOR_ID}}", "{{HOSTNAME}}", "{{CORES}}")
val command = Command("spark.executor.StandaloneExecutorBackend", args, sc.executorEnvs)
val sparkHome = sc.getSparkHome().getOrElse(
throw new IllegalArgumentException("must supply spark home for spark standalone"))
val sparkHome = sc.getSparkHome().getOrElse(null)
val appDesc = new ApplicationDescription(appName, maxCores, executorMemory, command, sparkHome,
sc.ui.appUIAddress)
......
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