How to register byte[][] using kryo serialization for spark conf.registerKryoClasses(Array( Class.forName("[[B"))) should work