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

PySpark should not collect results through local filesystem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.2, 1.1.1, 1.2.1, 1.3.0, 1.4.0
    • 1.2.2, 1.3.1, 1.4.0
    • PySpark
    • None

    Description

      Py4J is slow when transferring large arrays, so PySpark currently dumps data to the disk and reads it back in order to collect() RDDs. On large enough datasets, this data will spill from the buffer cache and write to the physical disk, resulting in terrible performance.

      Instead, we should stream the data from Java to Python over a local socket or a FIFO.

      Attachments

        Activity

          People

            davies Davies Liu
            joshrosen Josh Rosen
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: