You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/02/06 12:01:35 UTC
[jira] [Updated] (SPARK-5470) use defaultClassLoader of Serializer
to load classes of classesToRegister in KryoSerializer
[ https://issues.apache.org/jira/browse/SPARK-5470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated SPARK-5470:
-----------------------------
Assignee: Lianhui Wang
> use defaultClassLoader of Serializer to load classes of classesToRegister in KryoSerializer
> -------------------------------------------------------------------------------------------
>
> Key: SPARK-5470
> URL: https://issues.apache.org/jira/browse/SPARK-5470
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Reporter: Lianhui Wang
> Assignee: Lianhui Wang
> Fix For: 1.4.0
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org