How Do i Serialize a class using default kryo and protobuf in scala

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How Do i Serialize a class using default kryo and protobuf in scala

ApoorvK
I have some case class which have primitive as well as nested class objects
hence if I add any more variable in class savepoint does not restore I read
if I can add kyroserializer on those class using google protobuf  I will be
able to serialize it from state. Can anyone please share any example in
scala for the same.



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: How Do i Serialize a class using default kryo and protobuf in scala

Timo Walther
Hi,

would Apache Avro be an option for you? Because this is currently still
the best supported format when it comes to schema upgrades as far as I
know. Maybe Gordon in CC can give your some additional hints.

Regards,
Timo


On 18.02.20 10:38, ApoorvK wrote:

> I have some case class which have primitive as well as nested class objects
> hence if I add any more variable in class savepoint does not restore I read
> if I can add kyroserializer on those class using google protobuf  I will be
> able to serialize it from state. Can anyone please share any example in
> scala for the same.
>
>
>
> --
> Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
>