Cloudera
CCD-410 · Question #60
To process input key-value pairs, your mapper needs to lead a 512 MB data file in memory. What is the best way to accomplish this?
The correct answer is D. Place the data file in the DistributedCache and read the data into memory in the configure method of the. See the full explanation below for the reasoning.
Question
To process input key-value pairs, your mapper needs to lead a 512 MB data file in memory. What is the best way to accomplish this?
Options
- ASerialize the data file, insert in it the JobConf object, and read the data into memory in the configure
- BPlace the data file in the DistributedCache and read the data into memory in the map method of the mapper.
- CPlace the data file in the DataCache and read the data into memory in the configure method of the mapper.
- DPlace the data file in the DistributedCache and read the data into memory in the configure method of the
How the community answered
(26 responses)- A12% (3)
- B4% (1)
- C4% (1)
- D81% (21)
Community Discussion
No community discussion yet for this question.