~/talk

Practical Spark Encoders + Teaching Kids Apache Spark

Talkat Scala Love 2022 · on Friday, 2022-02-18· [scala, data-engineering]
slides:none on file

Two short, concrete pieces: a classroom-ready garden-gnome RDD exercise that uses index cards to split work and demonstrates leader/worker failure recovery with Python examples and a promised Scala port; and a pragmatic fix for Spark Dataset blowups — a homemade compressed encoder that shrinks sparse or highly repeated fields so kilobyte inputs don’t explode into gigabytes and OOMs. Implementation forces string-based codegen with Janino and fragile implicits so upgrades break, and encoders remain row-based instead of columnar/Arrow which limits long-term performance.

AI-written summary · about

  1. 0:00Intro
  2. 4:05Spark Flow Chart
  3. 4:39Why
  4. 6:01Gnomes
  5. 8:16Gnome Leader
  6. 8:36Splitting Up Work
  7. 10:30Best Dog
  8. 11:44The Gnomes
  9. 13:04Sleepy Gnome
  10. 13:39Gnome with the Blue Hat
  11. 14:47Mental Health State
  12. 17:03Topic Change
  13. 17:27Slides
  14. 18:00Custom Encoders
  15. 18:25Why Custom Encoders
  16. 20:19Custom Encoder Example
  17. 21:25Sparse Data
  18. 21:44Compression
  19. 22:13Code Generation
  20. 26:39Decoder
  21. 27:00Implicits
  22. 27:40Replacing Encoders
  23. 27:52Encoder Test Suite
  24. 28:09Encoder Problems
  25. 29:12Exceptions
~/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.