spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Yip <yipjus...@prediction.io>
Subject Catching InvalidClassException in sc.objectFile
Date Thu, 19 Mar 2015 22:45:51 GMT
Hello,

I have persisted a RDD[T] to disk through "saveAsObjectFile". Then I
changed the implementation of T. When I read the file with sc.objectFile
using the new binary, I got the exception of java.io.InvalidClassException,
which is expected.

I try to catch this error via SparkException in the driver program.
However, both getCause() and getSuppressed() are empty.

What is the recommended way of catching this exception?

Thanks.

Justin

Mime
View raw message