GitHub user ghidi opened a pull request:

    https://github.com/apache/spark/pull/821

    SPARK-1877: ClassNotFoundException when loading RDD with serialized obje...

    When I load a RDD that has custom serialized objects, Spark throws 
ClassNotFoundException. This happens only when Spark is deployed as a 
standalone cluster, it works fine when Spark is local.
    
    I debugged the issue and I noticed that ObjectInputStream.resolveClass does 
not use ExecutorURLClassLoader set by SparkSubmit. You have to explicitly set 
the classloader in SparkContext.objectFile for ObjectInputStream when 
deserializing objects.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ghidi/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/821.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #821
    
----
commit fee0c5d2a8eb4908a095616e706c9799844be1d7
Author: Ghidireac <bogd...@u448a5b0a73d45358d94a.ant.amazon.com>
Date:   2014-05-19T06:36:45Z

    SPARK-1877: ClassNotFoundException when loading RDD with serialized objects

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to