spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Cheah <>
Subject Re: Serializable incompatible with Externalizable error
Date Tue, 03 Dec 2013 18:48:09 GMT
That can't be – Externalizable is a specific sub-interface of Serializable that allows custom
serialization formats.

Granted, I could accomplish the same thing by implementing the private readObject() and writeObject()
methods in this class, and implement Serializable only. It just seems odd to me that I'd have
to do so. Especially since the tuning guide suggests to use Externalizable:

-Matt Cheah

From: Andrew Ash <<>>
Reply-To: "<>"
Date: Monday, December 2, 2013 10:45 PM
To: "<>" <<>>
Subject: Re: Serializable incompatible with Externalizable error

At least from<>
it looks like Externalizable is roughly an old-java version of Serializable.  Does that class
implement both interfaces?  Can you take away the Externalizable interface if it's being used?

On Mon, Dec 2, 2013 at 7:15 PM, Matt Cheah <<>>
Hi everyone,

I'm running into a case where I'm creating a Java RDD of an Externalizable class, and getting
this stack trace: (;
Serializable incompatible with Externalizable)<some
other Java stuff>$
I'm running on a spark cluster generated by the EC2 Scripts. This doesn't happen if I'm running
things with local[N]. Any ideas?
-Matt Cheah

View raw message