setOutputKeyClass let you specify the output key type. For outputting selective keys, you need to call OutputCollector#collectfor 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 based on keys. Is it possible to selectively write keys by setting setOutputKeyClass. Kindly let me know. Regards, Asim