Map wordCountMap = new Map(String, List(String>>(); //It holds each word as a key and all the same words are in the list In a word count Mapper class, you are emitting key value pair as Case 1 : context.write("word, IntWritable(1)) and
Case 2 : context.write("word, IntWritable(wordCountMap.get("word").size())) " ,
Select the correct statement from above example code snippet
Explanation: You should read the file in the configure() method so that, files can be loaded only once and not loaded each time a map() method is called.
Question : You have added the below files in Distributed cache
Which of the following is a correct method to get all the paths in an Array of the Distributed Cache files
1. 1. Iterate over the DistributedCache instance in the Mapper and add all the cached file paths to an array. 2. 2. There is a direct method available on the DistributedCache.getAllFilePath() 3. Access Mostly Uused Products by 50000+ Subscribers 4. 4. All of the above