QuestionQ2

VerifiedApache Spark Architecture and Components

A Spark developer is building a Spark application to monitor task performance throughout a cluster. One application requirement is to track the maximum processing time for tasks on every worker node and consolidate this data on the driver for further analysis.

Which technique should the developer use to accomplish this?

Explanation

Spark accumulators let worker tasks contribute values that are automatically propagated to the driver, where the accumulator value can be read. A custom accumulator can define merge logic that retains the maximum processing time, including maxima keyed by worker node. Broadcast variables distribute a read-only value to workers and cannot collect worker-side updates.

Learn more

Community Discussion

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