hadoop - Key getting changed in Reducer -


i have taken text key in mapper class. however, when go reducer class, key's getting changed. below example.

the key in mapper :

20130101 20130102 20130103

however, in reducer class, keys below:

20130101

keys 20130102 & 20130103 getting replaced 20130101.

sounds you're not copying value out of key. hadoop obnoxiously unexpected things in name of optimization, particularly object reuse.

so when think you're getting different text instances, you're getting same one. if you're putting these text keys list or map, example, it's not going work expect unless copy values.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -