QuestionQ268

VerifiedCost & Performance Optimisation

A Spark job is running longer than anticipated. In the Spark UI, a data engineer observes that the Min, Median, and Max Durations for tasks in a particular stage show that the minimum and median task-completion times are approximately equal, while the maximum task duration is roughly 100 times the minimum.

Which situation is increasing the overall job duration?

Explanation

Data skew occurs when substantially more data is assigned to one or a small subset of Spark partitions. The tasks processing those partitions become extreme duration outliers and delay completion of the entire stage and job. Databricks documents that skew is indicated when one or a few tasks run much longer than the rest and the maximum task duration is much higher than the other duration percentiles.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!