Hi, As per the code, KryoSerialization used writeClassAndObject method, which internally calls writeClass method, which will write the class of the object while serilization.
As per the documentation in tuning page of spark, it says that registering the class will avoid that. Am I missing something or there is some issue with the documentation??? Thanks, Twinkle