How many map operations are required if each line is stored in a separate datanode?

Viewed 21

A file.txt containing following data is given to you which is present in a local file system.

An apple a day keeps the doctor away
The apple of my eye
The apple never falls far from the tree

Apply map reduce programming on above file. Calculate the number of map operations and reduce operations if each line is stored in a separate datanode.

I know the number of map operations will be 3 as there will be 3 line splits but what about the reduce operations? Is it 16 due to the number of unique words present or something else?

0 Answers
Related