Navdeep Poonia created SPARK-30496:
--------------------------------------

             Summary: Pyspark on kubernetes does not support --py-files from 
remote storage in cluster mode
                 Key: SPARK-30496
                 URL: https://issues.apache.org/jira/browse/SPARK-30496
             Project: Spark
          Issue Type: Bug
          Components: Kubernetes, PySpark
    Affects Versions: 2.4.4
            Reporter: Navdeep Poonia


The following spark-submit on yarn works fine downloading the file from remote 
storage and putting it into PYTHONPATH,

spark-submit --master yarn --deploy-mode cluster --py-files 
s3://bucket/packages.zip s3://bucket/etl.py

 

While, the same fails on k8s with import errors for packages in the zip file. 
The following is set to PYTHONPATH on k8s, which has a link to s3 file which 
can't be supported by PYTHONPATH
{noformat}
PYTHONPATH='/opt/spark/python/lib/pyspark.zip:/opt/spark/python/lib/py4j-*.zip:s3://bucket/packages.zip'{noformat}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to