Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> object Writable and Serialization

Copy link to this message
Re: object Writable and Serialization
Old bits:

Can you try adding 'org.apache.hadoop.io.
serializer.JavaSerialization,' to the following config ?

By default, only org.apache.hadoop.io.serializer.WritableSerialization is
On Fri, Dec 10, 2010 at 7:22 AM, <[EMAIL PROTECTED]> wrote:

> Hi,
> I know that Hadoop MR don't use the java object Serialization and use
> instead the object Writable, and I understand the reasons that the Hadoop MR
> team chose that.
> I was doing my modifications to the Hadoop MR, and I was trying to transfer
> my own object via RPC method call between the TT and the JT.
> Here's my object:
> [code]
> // please notice that I use Serializable instead of Writable
> // and I don't implement the method readFields and write neither.
> public class MyObj implements Serializable {
> ...
> }
> [/code]
> As consequence this object isn't transfered between the TT and the JT.
> Why it isn't transfered? Despite of Hadoop MR don't use java object
> Serialization, this is a feature that belongs to the Java framework.
> Thanks,