Re: what change to be done in OutputCollector to print custom writable object
There is also a good alternative, We use ObjectInputFormat and ObjectRecordReader. With it you can easily do File <-> Object translations. I can send a code sample to your mail if you want.
Re: what change to be done in OutputCollector to print custom writable object
Deepak Diwakar wrote: Hi, I am learning how to make custom-writable working. So I have implemented a simple MyWriitable class. And I can play with the MyWritable object within the Map-Reduce. but suppose in Reduce Values are a type of MyWritable object and I put them into OutputCollector to get final output. Since value is a custom object I can't get them into file but a reference. What and where I have to make changes /additions so that print into file function handles the custom-writable object? Thanks & regards, just implement toString() in your MyWritable class.
what change to be done in OutputCollector to print custom writable object
Hi, I am learning how to make custom-writable working. So I have implemented a simple MyWriitable class. And I can play with the MyWritable object within the Map-Reduce. but suppose in Reduce Values are a type of MyWritable object and I put them into OutputCollector to get final output. Since value is a custom object I can't get them into file but a reference. What and where I have to make changes /additions so that print into file function handles the custom-writable object? Thanks & regards, -- - Deepak Diwakar,