• Post Reply Bookmark Topic Watch Topic
  • New Topic

Output.collect mapreduce does not seem to be taking the right value?

Ahmed baser
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm quite new to Hadoop and I've been struggling for two days to figure out why output.collect is not collecting the right value.

I explain myself: in fact, (for sake of simplification) I have the following map method :

where MyObject is an object I created:

In fact, when I launch only the mapper in the debug mode, even despite the fact I'm setting the origin attribute of row (MyObject) to true, the output of the mapper (output.collect) is always row with origin attribute set to false (default value of a boolean). I do not understand what is wrong with output.collect.

Any help would be more than welcome. Thanks!
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!