MediumConceptSpark production scenarios
Why is a Python UDF slower than built-in functions and what are the alternatives?
This answer is part of Pro
48 of 348 Data engineering answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousHow does Spark's Adaptive Query Execution change a plan at runtime?Next A streaming Spark job keeps falling behind after a traffic spike and the state store grows without bound. What do you do?
More on Spark production scenarios
Flashcards for this topic- MediumA Spark job's last stage has one task running 40 minutes while 199 others finish in 1 minute. How do you diagnose and fix it?
- MediumYour Spark job on a 50-node cluster fails with executor lost and OOM during a groupBy. What do you check first?
- HardNightly job writes thousands of tiny Parquet files to S3 and downstream queries slow down. How do you fix it end to end?
- MediumA join between a 2 TB table and a 5 GB dimension is slow. What options do you consider?