You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2014/09/24 21:11:33 UTC
[jira] [Resolved] (SPARK-3634) Python modules added through
addPyFile should take precedence over system modules
[ https://issues.apache.org/jira/browse/SPARK-3634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Rosen resolved SPARK-3634.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Issue resolved by pull request 2492
[https://github.com/apache/spark/pull/2492]
> Python modules added through addPyFile should take precedence over system modules
> ---------------------------------------------------------------------------------
>
> Key: SPARK-3634
> URL: https://issues.apache.org/jira/browse/SPARK-3634
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 1.0.2, 1.1.0
> Reporter: Josh Rosen
> Fix For: 1.2.0
>
>
> Python modules added through {{SparkContext.addPyFile()}} are currently _appended_ to {{sys.path}}; this is probably the opposite of the behavior that we want, since it causes system versions of modules to take precedence over versions explicitly added by users.
> To fix this, we should change the {{sys.path}} manipulation code in {{context.py}} and {{worker.py}} to prepend files to {{sys.path}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org