title: Understanding Kryo serialization buffer overflow error
body: <p>I am trying to understand the following  error and I am running in client ode.</p>
  
  <pre><code> org.apache.spark.SparkException: Kryo serialization failed: Buffer overflow. Available: 0, required: 61186304. To avoid this, increase spark.kryoserializer.buffer.max value.
          at org.apache.spark.serializer.KryoSerializerInstance.serialize(KryoSerializer.scala:300)
          at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:313)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>Basically I am trying to narrow down the problem.
  Is my understanding right that this error is occurring in the spark driver side(i am on aws emr so I believe this will be running on master)?
  and I should be looking at <code>spark.driver.memory</code> ?</p>