Certified Associate Developer for Apache Spark Exam QuestionsBrowse all questions from this exam

Certified Associate Developer for Apache Spark Exam - Question 87


The code block shown below contains an error. The code block is intended to adjust the number of partitions used in wide transformations like join() to 32. Identify the error.

Code block:

spark.conf.set("spark.default.parallelism", "32")

Show Answer
Correct Answer: AE

The code intends to adjust the number of partitions used in wide transformations like join(). The correct Spark configuration parameter for this purpose is spark.sql.shuffle.partitions, not spark.default.parallelism.

Discussion

3 comments
Sign in to comment
Ram459Option: A
Aug 15, 2023

should be spark.sql.shuffle.partitions for joins

newusernameOption: A
Nov 9, 2023

spark.conf.set("spark.sql.shuffle.partitions", "32")

AnweeeOption: A
Feb 4, 2024

A ist richtig