GitHub user davies opened a pull request:
https://github.com/apache/spark/pull/2492
[SPARK-3634] [PySpark] User's module should take precedence over system
modules
Python modules added through addPyFile should take precedence over system
modules.
This patch put the path for user added module in the front of sys.path
(just after ''),
BTW: it's a bit dangerous that user can upload new module to modify the
default behavior of system. Currently, it's hard to find the the correct
position to insert user's module.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/davies/spark path
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2492.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 #2492
----
commit c16c392c6b41b0922e9fc95dc54125ba926bdb13
Author: Davies Liu <[email protected]>
Date: 2014-09-22T18:58:37Z
put addPyFile in front of sys.path
----
---
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]