I was trying to pass an enum from mapper to reducer, in job conf, I set
job.setMapOutputValueClass(StatisticTypes.class);
and in mapper, I passed a type of this enum, but always get
Type mismatch in value from map: expected StatisticTypes, recieved StatisticTypes$2
It seems like types of this enums were treated as a nested class of the enum
I'm wondering how can I set mapoutputvalueclass
to include it's nested classes. Or is it possible to set multiple mapoutput classes?
Another related question
How to set mapOutputValueClass as Enum in hadoop