It depends. The default Kryo serializer cannot handle all cases. If you encounter any issue, you can follow the Kryo doc to set up custom serializer: https://github.com/EsotericSoftware/kryo/blob/master/README.md
On Wed, Jan 27, 2016 at 3:13 AM, amit tewari <[email protected]> wrote: > This is what I have added in my code: > > > > rdd.persist(StorageLevel.MEMORY_ONLY_SER()) > > conf.set("spark.serializer","org.apache.spark.serializer.KryoSerializer"); > > > > Do I compulsorily need to do anything via : spark.kryo.classesToRegister? > > Or the above code sufficient to achieve performance gain using Kryo > serialization? > > > > Thanks > > Amit >
