Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/2145#discussion_r16746707
--- Diff: sbin/mesos-pyenv.sh ---
@@ -17,10 +17,10 @@
# limitations under the License.
#
+#
+# This script is only used for fine grained Mesos executors
+
FWDIR="$(cd `dirname $0`/..; pwd)"
export PYTHONPATH=$FWDIR/python:$PYTHONPATH
export PYTHONPATH=$FWDIR/python/lib/py4j-0.8.2.1-src.zip:$PYTHONPATH
-
-echo "Running spark-executor with framework dir = $FWDIR"
-exec $FWDIR/bin/spark-class org.apache.spark.executor.MesosExecutorBackend
--- End diff --
But `sparkHome` is driver side Spark home directory, which can't be used on
driver side to assemble the Mesos executor side command line. On the other
side, `sbin/mesos-pyenv.sh` is always executed on Mesos executor side, thus
`$FWDIR` always points to the right position.
---
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]