Thomas Graves created SPARK-21945:
-------------------------------------

             Summary: pyspark --py-files doesn't work in yarn client mode
                 Key: SPARK-21945
                 URL: https://issues.apache.org/jira/browse/SPARK-21945
             Project: Spark
          Issue Type: Bug
          Components: PySpark
    Affects Versions: 2.2.0
            Reporter: Thomas Graves


I tried running pyspark with --py-files pythonfiles.zip  but it doesn't 
properly add the zip file to the PYTHONPATH.

I can work around by exporting PYTHONPATH.

Looking in SparkSubmitCommandBuilder.buildPySparkShellCommand  I don't see this 
supported at all.   If that is the case perhaps it should be moved to 
improvement.

Note it works via spark-submit in both client and cluster mode to run python 
script.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to