Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
courses:mapreduce-tutorial:step-29 [2012/01/28 20:17] straka vytvořeno |
courses:mapreduce-tutorial:step-29 [2012/02/05 18:23] straka |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== MapReduce Tutorial : Running multiple Hadoop jobs ====== | + | ====== MapReduce Tutorial : Custom sorting and grouping comparators. |
+ | |||
+ | ====== Sorting comparator ====== | ||
+ | |||
+ | The keys are sorted before processed by a reducer, using a | ||
+ | [[http:// | ||
+ | |||
+ | ====== Grouping comparator ====== | ||
+ | |||
+ | In a reduce, it is guaranteed that keys are processed in ascending order. Sometimes it would be useful if the //values associated with one key// could also be processed in ascending order. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | < | ||
+ | <table style=" | ||
+ | < | ||
+ | <td style=" | ||
+ | <td style=" | ||
+ | <td style=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||