Spark
Lab
/ practice / quiz / optimisation
Overview
Learn
Modules
Practice
Cheatsheets
Search lessons & terms…
⌘K
0/39 lessons
Practice
Module 04 quiz · 8 questions
Performance & Optimisation
Performance & Optimisation · Question 1 of 8
A join stage shows median task 30 s / max 40 min, and median shuffle read 1 GB / max 120 GB. What's the best first move?
A
Raise spark.sql.shuffle.partitions from 200 to 2,000
B
Find the hot key with groupBy(key).count(), then let AQE's skew join split it or salt the join
C
Enable spark.speculation so the slow task is re-launched on another executor
D
Double executor memory so the big task stops spilling