GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/2145
[SPARK-2608][Core] Fixed command line option passing issue over Mesos
This PR is based on #1986, authored by @scwf.
The basic idea is to start Mesos executors directly with `java` (similar to
what we do for standalone executors). This PR is different from #1986 in two
major aspects:
1. Environment variables in `sc.executorEnvs` are properly set for Mesos
executors
2. `PYTHONPATH` is properly set for fine grained Mesos executors by calling
`sbin/mesos-pyenv.sh`
`sbin/spark-executor` is renamed to `sbin/mesos-pyenv.sh` since it's
only responsible for setting `PYTHONPATH` now, and the executor is started by
`MesosSchedulerBackend` after the change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark fix-mesos-opts
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2145.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2145
----
commit 478ccda56e4a791a8b3783b51740fec52502ac4f
Author: Cheng Lian <[email protected]>
Date: 2014-08-26T09:17:37Z
Fixed command line option passing issue over Mesos
Conflicts:
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]