Cloudera CCA Spark and Hadoop Developer Exam CCA175 Question # 26 Topic 3 Discussion

Cloudera CCA Spark and Hadoop Developer Exam CCA175 Question # 26 Topic 3 Discussion

CCA175 Exam Topic 3 Question 26 Discussion:
Question #: 26
Topic #: 3

Problem Scenario 43 : You have been given following code snippet.

val grouped = sc.parallelize(Seq(((1,"twoM), List((3,4), (5,6)))))

val flattened = grouped.flatMap {A =>

groupValues.map { value => B }

}

You need to generate following output.

Hence replace A and B

Array((1,two,3,4),(1,two,5,6))


Get Premium CCA175 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.