Re: Change the output of Reduce function

2013-07-26 Thread Felipe Gutierrez
Thanks so much! I got how to fix it! Felipe On Thu, Jul 25, 2013 at 4:32 PM, Shahab Yunus wrote: > @Tariq. No need. You understood me correctly :) > > Regards, > Shahab > > > On Thu, Jul 25, 2013 at 3:27 PM, Mohammad Tariq wrote: > >> @Shahab : Please correct me if I misunderstood you. >> >> War

Re: Change the output of Reduce function

2013-07-25 Thread Mohammad Tariq
Probably by that Shahab means that you can use NullWritable as your key from the Reducer. If you do so your Reducer will just emit the value without the key. Something like this : output.collect(NullWritable.get(), new MyWritable(text)); Warm Regards, Tariq cloudfront.blogspot.com On Fri, Jul 2

Re: Change the output of Reduce function

2013-07-25 Thread Shahab Yunus
@Tariq. No need. You understood me correctly :) Regards, Shahab On Thu, Jul 25, 2013 at 3:27 PM, Mohammad Tariq wrote: > @Shahab : Please correct me if I misunderstood you. > > Warm Regards, > Tariq > cloudfront.blogspot.com > > > On Fri, Jul 26, 2013 at 12:56 AM, Mohammad Tariq wrote: > >> Pr

Re: Change the output of Reduce function

2013-07-25 Thread Mohammad Tariq
@Shahab : Please correct me if I misunderstood you. Warm Regards, Tariq cloudfront.blogspot.com On Fri, Jul 26, 2013 at 12:56 AM, Mohammad Tariq wrote: > Probably by that Shahab means that you can use NullWritable as your key > from the Reducer. If you do so your Reducer will just emit the val

Re: Change the output of Reduce function

2013-07-25 Thread Shahab Yunus
If I understood your issue correctly, you want to only output the 'value' part from the reduce after your job ends. Right? If that is the case then you can do something like that in the reduce function. This will only output value and no key part. *output.colllect(NullWritable.get(), value);* (

Re: Change the output of Reduce function

2013-07-25 Thread Felipe Gutierrez
Sorry, I think I didnt understand, Does NullWritable go to replate MyWritable? But this is may value. My key is a Text. Regards, Felipe On Thu, Jul 25, 2013 at 4:07 PM, Shahab Yunus wrote: > I think uou can use NullWritable as key. > > http://hadoop.apache.org/docs/current/api/org/apache/hadoop

Re: Change the output of Reduce function

2013-07-25 Thread Shahab Yunus
I think uou can use NullWritable as key. http://hadoop.apache.org/docs/current/api/org/apache/hadoop/io/NullWritable.html Regards, Shahab On Thu, Jul 25, 2013 at 2:58 PM, Felipe Gutierrez < felipe.o.gutier...@gmail.com> wrote: > I did a MapReduce program to execute a Grep function. I know ther