I think what you do in that case is to write your own Partitioner class. The default partitioning is based on the hash value. See http://wiki.apache.org/hadoop/HadoopMapReduce

Raymond Jennings III wrote:
Is it possible to override a method in the reducer so that similar keys will be grouped together?  
For example I want all keys of value "KEY1" and "KEY2" to merged together.  (My 
reducer has a KEY of type TEXT.)  Thanks.



--

*Reik Schatz*
Technical Lead, Platform
P: +46 8 562 470 00
M: +46 76 25 29 872
F: +46 8 562 470 01
E: reik.sch...@bwin.org <mailto:reik.sch...@bwin.org>
*/bwin/* Games AB
Klarabergsviadukten 82,
111 64 Stockholm, Sweden

[This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.]

Reply via email to