~/talk

Improving PySpark Performance: Spark performance beyond the JVM

Talkat PyData Amsterdam 2016 · 2016-03-12..03-13· [python, web-performance]
slides:none on file

PySpark bottlenecks center on the double serialization cost between Python and the JVM and DataFrames move heavy work inside the JVM so Python code runs much faster. Replacing groupByKey with reduceByKey cuts shuffle (example: shuffled read drops from ~48KB to ~11.6KB in a demo) and map-side combine helps. For extreme hotspots the path is to register JVM UDFs or call internal JVM methods; for unreliable clusters prefer checkpoint noisy clusters over naive caching.

AI-written summary · about

  1. 0:00PySpark performance beyond JVM
  2. 3:53Apache Spark overview
  3. 6:23PySpark architecture pain points
  4. 8:49Word count serialization cost
  5. 10:12DataFrames vs RDDs performance
  6. 12:19Optimizing word count with UDFs
  7. 14:27Mixing JVM and Python code
  8. 15:31Internal Spark methods access
  9. 18:25DataFrame performance best practices
  10. 20:51Why groupByKey is slow
  11. 24:29groupByKey vs reduceByKey
  12. 27:43Sorting without explosions
  13. 29:13Reductions and treeReduce
  14. 30:40RDD caching and checkpointing
  15. 34:11Python libraries in Spark
  16. 35:36Spark performance resources
  17. 38:05Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.