spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Sela (JIRA)" <>
Subject [jira] [Commented] (SPARK-15489) Dataset kryo encoder fails on Collections$UnmodifiableCollection
Date Tue, 24 May 2016 20:39:13 GMT


Amit Sela commented on SPARK-15489:

Well it looks like the codegen creates a ```java new SparkConf()```, instead of deserializing
a "broadcasted" one. 
I've tried adding the registrator configuration as a System parameter (-D), but it didn't
catch. Is the generated code executed in the JVM ? in the same one if running in standalone

> Dataset kryo encoder fails on Collections$UnmodifiableCollection
> ----------------------------------------------------------------
>                 Key: SPARK-15489
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.1
>            Reporter: Amit Sela
> When using Encoders with kryo to encode generically typed Objects in the following manner:
> public static <T> Encoder<T> encoder() {
>   return Encoders.kryo((Class<T>) Object.class);
> }
> I get a decoding exception when trying to decode `java.util.Collections$UnmodifiableCollection`,
which probably comes from Guava's `ImmutableList`.
> This happens when running with master = local[1]. Same code had no problems with RDD

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message