GitHub user lianhuiwang opened a pull request:
https://github.com/apache/spark/pull/4258
[SPARK-5470][Core]use defaultClassLoader to load classes of
classesToRegister in KryoSeria...
Now KryoSerializer load classes of classesToRegister at the time of its
initialization. when we set spark.kryo.classesToRegister=class1, it will throw
SparkException("Failed to load class to register with Kryo".
because in KryoSerializer's initialization, classLoader cannot include
class of user's jars.
we need to use defaultClassLoader of Serializer in newKryo(), because
executor will reset defaultClassLoader of Serializer after Serializer's
initialization.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lianhuiwang/spark SPARK-5470
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4258.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 #4258
----
commit 64cf3069457de9ba303faa0018a82ac3ec5eb6a0
Author: lianhuiwang <[email protected]>
Date: 2015-01-29T02:25:21Z
use defaultClassLoader to load classes of classesToRegister in
KryoSerializer
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]