Re: Want to Sort the values in one line using map reduce

2013-07-27 Thread manish dunani
> > output.collect(key, v); > > } > > } > > In the above reduce function you can add logical condition to avoid extra > ‘,’ at end of each value line. > > ** ** > > Thanks > > Devaraj k**** > > ** ** > >

RE: Want to Sort the values in one line using map reduce

2013-07-26 Thread Devaraj k
ove reduce function you can add logical condition to avoid extra ',' at end of each value line. Thanks Devaraj k From: manish dunani [mailto:manishd...@gmail.com] Sent: 27 July 2013 10:02 To: user@hadoop.apache.org Subject: Want to Sort the values in one line using map reduce Hi, I ha

Want to Sort the values in one line using map reduce

2013-07-26 Thread manish dunani
Hi, *I have input file and my data looks like:* date country city pagePath visits 20120301 India Ahmedabad / 1 20120302 India Ahmedabad /gtuadmissionhelpline-team 1 20120302 India Mumbai / 1 20120302 India Mumbai /merit-calculator 1 * I wrote the map and reduce application to conve