You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2019/02/19 21:15:00 UTC
[jira] [Created] (SPARK-26933) spark-submit does not make zip files
provided with --py-files visible to pyspark
Marcelo Vanzin created SPARK-26933:
--------------------------------------
Summary: spark-submit does not make zip files provided with --py-files visible to pyspark
Key: SPARK-26933
URL: https://issues.apache.org/jira/browse/SPARK-26933
Project: Spark
Issue Type: Bug
Components: PySpark, Spark Core
Affects Versions: 2.4.0
Reporter: Marcelo Vanzin
I ran into this while testing the changes I made for SPARK-24736.
If you provide, e.g., {{--py-files dependency.zip}} to spark-submit, that archive is not added to the pyspark app's PYTHONPATH. That makes the dependency not visible to the pyspark code.
{{.py}} files added using {{--py-files}} work fine (if they're imported after a SparkContext is instantiated).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org