Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 23 Which of the following is true of running a Spark application on Hadoop YARN? O A. Irrespective of the mode, the driver
QUESTION 23 Which of the following is true of running a Spark application on Hadoop YARN? O A. Irrespective of the mode, the driver is launched the client process that submitted the job OB. Running in Hadoop YARN has the advantage of having multiple users running the Spark interactive shell O C. There are two deploy modes that can be used to launch Spark applications on YARN - client mode and cluster mode O D. In Hadoop YARN mode, the RDDS and variables are always in the same memory space QUESTION 24 An existing RDD, unhcrRDD contains refugee data from the UNHCR. It contains the following fields: (Country of residence, Country of origin, Year, Number of refugees). Sample data is shown below. Assume that number of refugees is of type int and all other values are of type String. Array (Array (Afghanistan, Pakistan, 2013, 34), Array (Albania, Algeria, 2013, 0), Array (Albania, China, 2013, 12)...). To get the count of all refugees by country of residence, use which of the following in Python? O A. country = unhcrRDD.map(lambda x: (x(0), x(3))).reduceByKey(lambda v1, v2: v1 + v2) O B. country = unhcrRDD.map(lambda x: x.parallelize()) OC. country = unhcrRDD.map(lambda x: x.parallelize()).reduceByKey(lambda v1, v2: v1 + v2) O D. country = unhcrRDD.map(lambda x: x(0),1)).reduceByKey(lambda v1, v2: v1 + v2)
Step by Step Solution
★★★★★
3.36 Rating (159 Votes )
There are 3 Steps involved in it
Step: 1
The detailed answer for the above question is provided below 23 C There are two deploy modes that can be used to launch Spark applications on YARN cli...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started