Re: Selective output based on keys

2009-05-13 Thread jason hadoop
The customary practice is to have your Reducer.reduce method handle the filtering if you are reducing your output. or the Mapper.map method if you are not. On Wed, May 13, 2009 at 1:57 PM, Asim wrote: > Hi, > > I wish to output only selective records to the output files based on > keys. Is it po

Re: Selective output based on keys

2009-05-13 Thread sharad agarwal
setOutputKeyClass let you specify the output key type. For outputting selective keys, you need to call OutputCollector#collect for only those keys. If using new map reduce API, need to call Context#write. - Sharad Asim wrote: Hi, I wish to output only selective records to the output files b

Selective output based on keys

2009-05-13 Thread Asim
Hi, I wish to output only selective records to the output files based on keys. Is it possible to selectively write keys by setting setOutputKeyClass. Kindly let me know. Regards, Asim