You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Enis Soztutar <en...@gmail.com> on 2009/04/01 11:53:30 UTC

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.