Skip to content

Commit 8184568

Browse files
dragossarutak
authored andcommitted
[SPARK-12345][MESOS] Properly filter out SPARK_HOME in the Mesos REST server
Fix problem with #10332, this one should fix Cluster mode on Mesos Author: Iulian Dragos <jaguarul@gmail.com> Closes #10359 from dragos/issue/fix-spark-12345-one-more-time.
1 parent 86e405f commit 8184568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private[mesos] class MesosSubmitRequestServlet(
9999
// cause spark-submit script to look for files in SPARK_HOME instead.
100100
// We only need the ability to specify where to find spark-submit script
101101
// which user can user spark.executor.home or spark.home configurations.
102-
val environmentVariables = request.environmentVariables.filter(!_.equals("SPARK_HOME"))
102+
val environmentVariables = request.environmentVariables.filterKeys(!_.equals("SPARK_HOME"))
103103
val name = request.sparkProperties.get("spark.app.name").getOrElse(mainClass)
104104

105105
// Construct driver description

0 commit comments

Comments
 (0)