Skip to content
Snippets Groups Projects
Commit 8a9417bc authored by Andrew Or's avatar Andrew Or
Browse files

Revert "[SPARK-12345][MESOS] Properly filter out SPARK_HOME in the Mesos REST server"

This reverts commit 81845688.
parent 14be5dec
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ private[mesos] class MesosSubmitRequestServlet( ...@@ -99,7 +99,7 @@ private[mesos] class MesosSubmitRequestServlet(
// cause spark-submit script to look for files in SPARK_HOME instead. // 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 // We only need the ability to specify where to find spark-submit script
// which user can user spark.executor.home or spark.home configurations. // 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) val name = request.sparkProperties.get("spark.app.name").getOrElse(mainClass)
// Construct driver description // Construct driver description
......
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