Skip to content

Commit a30fac1

Browse files
committed
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)
2 parents 03cc765 + 250bddc commit a30fac1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/scala/spark/scheduler/cluster/SparkDeploySchedulerBackend.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ private[spark] class SparkDeploySchedulerBackend(
4646
StandaloneSchedulerBackend.ACTOR_NAME)
4747
val args = Seq(driverUrl, "{{EXECUTOR_ID}}", "{{HOSTNAME}}", "{{CORES}}")
4848
val command = Command("spark.executor.StandaloneExecutorBackend", args, sc.executorEnvs)
49-
val sparkHome = sc.getSparkHome().getOrElse(
50-
throw new IllegalArgumentException("must supply spark home for spark standalone"))
49+
val sparkHome = sc.getSparkHome().getOrElse(null)
5150
val appDesc = new ApplicationDescription(appName, maxCores, executorMemory, command, sparkHome,
5251
sc.ui.appUIAddress)
5352

0 commit comments

Comments
 (0)