• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
His brain is the size of a cherry pit! About the size of this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic