In the Hadoop MapReduce, for the intermediate Output (generated by the map()), i want the Value for the Intermediate output to be the following object.
MyObject{
date:Date
balance:Double
}
How would i do this. Should i create my own Writable Class?
I am a newbie to MapReduce.
Thanks.
You can write your custom type which you can emit as the mapper value. But whatever you want to emit as value, must implement the Writable Interface. You can do something like this :
Alternatively you can make use of Avro serialization framework.