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

[CORE] Remove unnecessary python path from spark home

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.1
    • None
    • Spark Core
    • None

    Description

      Currently, spark-submit will upload pyspark.zip and py4j-0.10.9-src.zip into staging folder, and both files will be added into PYTHONPATH. So it's unnecessary to add duplicate files in current spark home folder on local machine.
      Output of `sys.path` as below:

      'D:\\data\\yarnnm\\local\\usercache\\z\\appcache\\application_1603546638930_150736\\container_e1148_1603546638930_150736_01_000002
      pyspark.zip',
      'D:\\data\\yarnnm\\local\\usercache\\z\\appcache\\application_1603546638930_150736\\container_e1148_1603546638930_150736_01_000002
      py4j-0.10.7-src.zip',
      'D:\\data\\spark.latest\\python\\lib
      pyspark.zip',
      'D:\\data\\spark.latest\\python\\lib
      py4j-0.10.7-src.zip',

      Attachments

        Activity

          People

            Unassigned Unassigned
            warrenzhu25 Zhongwei Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: