How to sort intermediate output based on values in MapReduce?



How to sort intermediate output based on values in MapReduce?..

Answer / Roushan Kumar Tiwary

In Hadoop MapReduce, the intermediate output is sorted automatically based on keys. To sort the output by values, you can implement a custom comparator for the value class and use it when defining the input format or output format.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MapReduce Interview Questions

In MapReduce, ideally how many mappers should be configured on a slave?

1 Answers  


Mention when to use Map reduce mode?

1 Answers  


Different ways of debugging a job in MapReduce?

1 Answers  


How hadoop mapreduce works?

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  


What is an input reader in reference to mapreduce?

1 Answers  


What is identity mapper and identity reducer?

1 Answers  


How many Reducers run for a MapReduce job?

1 Answers  


what is a sequence file in Hadoop?

1 Answers  


What is a "reducer" in Hadoop?

1 Answers  


How to set which framework would be used to run mapreduce program?

1 Answers  


Explain what does the conf.setMapper Class do in MapReduce?

1 Answers  


Categories