+1! 2014-02-10 20:27 GMT-08:00 Chris Mattmann  Hi Everyone, Looks like you have a large number of distinct keys. As you suspect, this maybe due to hash collisions, which only up to 4 billion. It could be related to this PR: https://github.com/apache/incubator-spark/pull/612. The other thing is we had some issues with the behavior of arbitrary serialization/compression engines, and this is solved in the PR that Mridul referenced. What compression and serialization libraries are you using? 2014-02-18 20:56 GMT-08:00 Mridul Muralidharan  I had not resolved it in time for 0.9 - but IIRC there was a recent PR For compressing shuffle spills in 0.9, we added a hack such that it always uses LZF, so actually your compression library shouldn't matter. We did notice that Kryo was pre-fetching, however, such that batching reads led to some items being lost. To fix this, we introduced a hack specifically for Kryo that works around this. Although we tested it and the hack sufficed back then, it is entirely possible that there are corner cases that we missed. In any case, PR #533 (after 0.9 release) should have taken care of the problem. If you still run into the same problem on master, then it could be a corner case that our current way of handling hash collisions missed. When you have the time, do let us know what you find! Andrew 2014-02-18 21:08 GMT-08:00 Andrew Ash  I'm using Kryo with these options: