~/talk

Inside Apache Spark

TalkinRussianat PyCon Belarus 2018 · on Saturday, 2018-02-24· [distributed-systems]
links:none on file
slides:none on file

Explains why PySpark can be slow: Python UDFs either become per-element Py4J calls or require serialized byte arrays, causing heavy JVM↔Python shuffling and socket overhead. Describes Spark’s two dependency types (one-to-one and shuffle dependency) and shows that joins/groupBy trigger expensive network shuffles; recommends concrete fixes such as using reduceByKey with combiners instead of groupByKey, batching work with mapPartitions or pipe, and using Spark 2.3’s Apache Arrow / vectorized Pandas UDFs to run pandas-like code inside partitions and greatly reduce serialization cost.

AI-written summary · about

  1. 0:00Introduction
  2. 3:10What is Apache Spark
  3. 6:20RDDs and lazy evaluation
  4. 10:15RDD dependencies and shuffles
  5. 14:55Spark-JVM integration challenges
  6. 22:01Python-Spark integration internals
  7. 35:45DataFrame UDFs performance
  8. 38:14Arrow and future improvements
  9. 39:39Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.