diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2015-12-18 03:19:31 +0900 |
---|---|---|
committer | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2015-12-18 03:19:31 +0900 |
commit | 8184568810e8a2e7d5371db2c6a0366ef4841f70 (patch) | |
tree | c0fd4d3923ecb4600e04367a7b15c5b025b1c5ec /core/src/main/scala/org/apache | |
parent | 86e405f357711ae93935853a912bc13985c259db (diff) | |
download | spark-8184568810e8a2e7d5371db2c6a0366ef4841f70.tar.gz spark-8184568810e8a2e7d5371db2c6a0366ef4841f70.tar.bz2 spark-8184568810e8a2e7d5371db2c6a0366ef4841f70.zip |
[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.
Diffstat (limited to 'core/src/main/scala/org/apache')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala b/core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala index 24510db2bd..c0b9359650 100644 --- a/core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala +++ b/core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala @@ -99,7 +99,7 @@ private[mesos] class MesosSubmitRequestServlet( // cause spark-submit script to look for files in SPARK_HOME instead. // We only need the ability to specify where to find spark-submit script // which user can user spark.executor.home or spark.home configurations. - val environmentVariables = request.environmentVariables.filter(!_.equals("SPARK_HOME")) + val environmentVariables = request.environmentVariables.filterKeys(!_.equals("SPARK_HOME")) val name = request.sparkProperties.get("spark.app.name").getOrElse(mainClass) // Construct driver description |