You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/05/08 08:13:00 UTC

[jira] [Commented] (SPARK-21945) pyspark --py-files doesn't work in yarn client mode

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

Apache Spark commented on SPARK-21945:
--------------------------------------

User 'HyukjinKwon' has created a pull request for this issue:
https://github.com/apache/spark/pull/21267

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org