QuestionQ72

VerifiedData Processing & Transformations

A data engineer is inspecting an ETL pipeline based on a Pyspark job that consistently encounters performance bottlenecks. Based on developer feedback, the data engineer assumes the job is low on compute resources. To pinpoint the issue, the data engineer observes the Spark UI and finds out the job has a high CPU time vs Task time.

Which course of action should the data engineer take?

Explanation

When CPU time accounts for most of a task's total task time, the executors are spending nearly all of their wall-clock time actively computing rather than waiting on I/O, shuffle, or garbage collection, indicating the CPU cores are fully (or over-) utilized rather than idle. The appropriate response is to tune executor and core allocation or resize the cluster to add compute capacity, not to repartition the data, which addresses the opposite symptom of idle cores waiting on skewed or poorly distributed work.

Community Discussion

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