Cloudera CCA Spark and Hadoop Developer Exam CCA175 Question # 7 Topic 1 Discussion

Cloudera CCA Spark and Hadoop Developer Exam CCA175 Question # 7 Topic 1 Discussion

CCA175 Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

Problem Scenario 46 : You have been given belwo list in scala (name,sex,cost) for each work done.

List( ("Deeapak" , "male", 4000), ("Deepak" , "male", 2000), ("Deepika" , "female", 2000),("Deepak" , "female", 2000), ("Deepak" , "male", 1000) , ("Neeta" , "female", 2000))

Now write a Spark program to load this list as an RDD and do the sum of cost for combination of name and sex (as key)


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.