how to sort the output by vlaue in reduce instead of by key?

2011-04-11 Thread leibnitz
yes,my key is ip,and value is a object(which inherited hadoop Record class,and will be converted a visualized data),e.g.: key field1,field2,field3(these are properties belong to object) 12.121.23.121 121,11,/img/dd.jpg 32.121.23.222 221,11,/img/xx.jpg 1.i want to sort by field1

Re: how to sort the output by vlaue in reduce instead of by key?

2011-04-11 Thread sumit ghosh
Your field1 data can be split over multiple reducers. Is it possible to emit field1 as the key from the reducer (in case you do not need the ip anymore)? From: leibnitz se3g2...@gmail.com To: hadoop-u...@lucene.apache.org Sent: Mon, 11 April, 2011 12:02:46 PM

how to sort the output by vlaue in reduce instead of by key?

2011-04-11 Thread sumit ghosh
Your field1 data can be split over multiple reducers. Is it possible to emit field1 as the key from the reducer (in case you do not need the ip anymore)? From: leibnitz se3g2...@gmail.com To: hadoop-u...@lucene.apache.org Sent: Mon, 11 April, 2011 12:02:46 PM