posted 8 years ago
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!