QuestionQ108

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

A Spark application developer is evaluating the performance of a Spark job that performs transformations on a large distributed dataset. The developer must determine which operation in the job initiates data shuffling and therefore creates a stage boundary in the Spark execution plan.

Which operation produces a shuffle and a new stage in the execution plan?

Explanation

A grouped aggregation redistributes records so that all rows for each grouping key are colocated before aggregation. This shuffle creates a stage boundary. filter, withColumn, and select generally process rows independently within their current partitions and do not require that redistribution.

Learn more

Community Discussion

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