How Kryo serializer allocates buffer in Spark
问题 Please help to understand how Kryo serializer allocates memory for its buffer. My Spark app fails on a collect step when it tries to collect about 122Mb of data to a driver from workers. com.esotericsoftware.kryo.KryoException: Buffer overflow. Available: 0, required: 57197 at com.esotericsoftware.kryo.io.Output.require(Output.java:138) at com.esotericsoftware.kryo.io.Output.writeBytes(Output.java:220) at com.esotericsoftware.kryo.io.Output.writeBytes(Output.java:206) at com.esotericsoftware