aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2015-12-18 16:22:41 -0800
committerAndrew Or <andrew@databricks.com>2015-12-18 16:22:41 -0800
commit8a9417bc4b227c57bdb0a5a38a225dbdf6e69f64 (patch)
tree059c603ed70fcb64191d32d5866f0437a3fe3dfe /core
parent14be5dece291c900bf97d87b850d906717645fd4 (diff)
downloadspark-8a9417bc4b227c57bdb0a5a38a225dbdf6e69f64.tar.gz
spark-8a9417bc4b227c57bdb0a5a38a225dbdf6e69f64.tar.bz2
spark-8a9417bc4b227c57bdb0a5a38a225dbdf6e69f64.zip
Revert "[SPARK-12345][MESOS] Properly filter out SPARK_HOME in the Mesos REST server"
This reverts commit 8184568810e8a2e7d5371db2c6a0366ef4841f70.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/deploy/rest/mesos/MesosRestServer.scala2
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 c0b9359650..24510db2bd 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.filterKeys(!_.equals("SPARK_HOME"))
+ val environmentVariables = request.environmentVariables.filter(!_.equals("SPARK_HOME"))
val name = request.sparkProperties.get("spark.app.name").getOrElse(mainClass)
// Construct driver description