QuestionQ207

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

The code block below should set the number of partitions used for wide transformations such as join() to 32. Choose the response that correctly fills the numbered blanks in the code block to complete this task.

__1__(__2__, __3__)  
Explanation

spark.sql.shuffle.partitions configures the number of partitions used when Spark shuffles data for joins and aggregations. The session runtime configuration API uses spark.conf.set(key, value), so setting that property to "32" produces the required configuration.

Learn more

Community Discussion

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