Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/651#discussion_r12450552
  
    --- Diff: sbin/spark-executor ---
    @@ -19,5 +19,10 @@
     
     FWDIR="$(cd `dirname $0`/..; pwd)"
     
    +sbin=`dirname "$0"`
    +sbin=`cd "$sbin"; pwd`
    +
    +. "$sbin/spark-config.sh"
    --- End diff --
    
    Hey actually - instead of doing this, do you mind just "inlining" the 
setting up of the PYTHONPATH into this file? `spark-config.sh` is intended to 
configure Spark's standalone daemons, it's not meant to be used at all in mesos 
mode. I realize the current approach fixes the problem, but it would be cleaner 
to just have the mesos executor setup $PYTHONPATH directly.
    ```
    export PYTHONPATH=$FWDIR/python:$PYTHONPATH
    export PYTHONPATH=$FWDIR/python/lib/py4j-0.8.1-src.zip:$PYTHONPATH
    ```



---
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.
---

Reply via email to