Skip to content
Snippets Groups Projects
Commit fa41d50f authored by Denny's avatar Denny
Browse files

Don't use system envs for Mesos.

parent 67c42a41
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ private[spark] class CoarseMesosSchedulerBackend(
sc.executorEnvs.foreach { case(k,v) =>
environment.addVariables(Environment.Variable.newBuilder()
.setName(k)
.setValue(System.getenv(v))
.setValue(v)
.build())
}
return CommandInfo.newBuilder().setValue(command).setEnvironment(environment).build()
......
......@@ -88,7 +88,7 @@ private[spark] class MesosSchedulerBackend(
sc.executorEnvs.foreach { case(k,v) =>
environment.addVariables(Environment.Variable.newBuilder()
.setName(k)
.setValue(System.getenv(v))
.setValue(v)
.build())
}
val memory = Resource.newBuilder()
......
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