What is the difference between map and reduce?



What is the difference between map and reduce?..

Answer / Shekher Raghuvanshi

In MapReduce, the map function takes input data (key-value pairs) and performs a mapping operation to produce intermediate key-value pairs. The reduce function then takes these intermediate key-value pairs, groups them by key, and performs a reduction operation to produce the final output. The main difference is that the map function processes data in parallel, while the reduce function aggregates the results of the map function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MapReduce Interview Questions

How to specify more than one directory as input to the MapReduce Job?

1 Answers  


If reducers do not start before all mappers finish then why does the progress on mapreduce job shows something like map(50%) reduce(10%)? Why reducers progress percentage is displayed when mapper is not finished yet?

1 Answers  


In MapReduce Data Flow, when Combiner is called?

1 Answers  


In Hadoop, which file controls reporting in Hadoop?

1 Answers  


What is identity mapper and identity reducer?

1 Answers  


What are the four basic parameters of a reducer?

1 Answers  


What are the advantages of using map side join in mapreduce?

1 Answers  


what is distributed cache in mapreduce framework?

1 Answers  


With the help of two examples name the map and reduce function purpose

1 Answers  


Explain about the partitioning, shuffle and sort phase

1 Answers  


Mention what is the hadoop mapreduce apis contract for a key and value class?

1 Answers  


A number of combiners can be changed or not in MapReduce?

1 Answers  


Categories