Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-30845

spark-submit pyspark app on yarn uploads local pyspark archives

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5
    • Fix Version/s: 3.1.0
    • Component/s: Spark Submit
    • Labels:
      None

      Description

      Use spark-submit to submit a pyspark app on Yarn, and set this in spark-env.sh:

      export PYSPARK_ARCHIVES_PATH=local:/opt/spark/python/lib/pyspark.zip,local:/opt/spark/python/lib/py4j-0.10.7-src.zip
      

      You can see that these local archives are still uploaded to Yarn distributed cache.

      yarn.Client: Uploading resource file:/opt/spark/python/lib/pyspark.zip -> hdfs://myhdfs/user/test1/.sparkStaging/application_1581024490249_0001/pyspark.zip

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shanyu shanyu zhao
                Reporter:
                shanyu shanyu zhao
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: