You can use Hadoop NullWritable http://hadoop.apache.org/common/docs/r1.0.1/api/org/apache/hadoop/io/NullWritable.Comparator.html
Mark On Mon, Jun 11, 2012 at 8:10 AM, huanchen.zhang <huanchen.zh...@ipinyou.com>wrote: > hi, > > I am developing a map reduce program which has no reduce. And I just want > the maps to output all the values which meet some requrements (no keys > output). > > what should I do in this case? I tried context.write(Text, Text), but it > outputs both keys and values. > > Thank you ! > > Best, > Huanchen > > 2012-06-11 > > > > huanchen.zhang >