[ 
https://issues.apache.org/jira/browse/SPARK-3634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143641#comment-14143641
 ] 

Apache Spark commented on SPARK-3634:
-------------------------------------

User 'davies' has created a pull request for this issue:
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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to