I am trying to write a sample Map Reduce program whose Mapper output looks like:
1/1/2012 15:11:46
1/1/2012 19:09:26
1/1/2012 14:01:25
1/1/2012 17:32:26
1/1/2012 17:41:00
1/1/2012 19:35:38
1/1/2012 14:28:10
1/1/2012 15:45:55
I want my input to the reducer sorted by key and then by value. By default, Hadoop framework sorts the mapper output only by key.
I think I should be using the Secondary Sort to accomplish this task but not sure how to use this.
Can anyone please help me with this?