for (IntWritable val : values) {
> sum += val.get();
> }
> context.write(key, new IntWritable(sum));
> }
> }
> =================
>
> Regards,
> Parkirat Bagga.
+= val.get();
}
context.write(key, new IntWritable(sum));
}
}
=
Regards,
Parkirat Bagga.
--
View this message in context:
http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-f
IntWritable(sum));
}
}
=
Regards,
Parkirat Bagga.
--
View this message in context:
http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-file-is-not-working-properly-tp4062141p4062240.html
Sent from the HBase User
1 20:53:05 INFO mapred.JobClient: Map output records=18
>
>
> *Generated Output File:*
>
> -bash-4.1$ hadoop fs -tail /tmp/wc/output/part-r-0
> Hadoop 1
> This1
> an 1
> as 1
> example 1
> example 1
> fine1
> if 1
> is 1
> not.1
> or 1
> so 1
> test1
> test1
> this1
> to 1
> to 1
> works 1
>
>
> Regards,
> Parkirat Bagga
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-file-is-not-working-properly-tp4062141p406.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
1
this1
to 1
to 1
works 1
Regards,
Parkirat Bagga
--
View this message in context:
http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-file-is-not-working-properly-tp4062141p406.html
Sent from the
only once.
> >
> > Could anybody help me with this problem?
> >
> > Regards,
> > Parkirat Singh Bagga.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-file-is-not-working-properly-tp4062141.html
> > Sent from the HBase User mailing list archive at Nabble.com.
> >
>
> Moreover if the same key comes twice, it goes to the file twice, even if my
> reducer want to log it only once.
>
> Could anybody help me with this problem?
>
> Regards,
> Parkirat Singh Bagga.
>
>
>
> --
> View this message in context:
> http://apache-hbas
irat Singh Bagga.
--
View this message in context:
http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-file-is-not-working-properly-tp4062141.html
Sent from the HBase User mailing list archive at Nabble.com.