Hey, I've opened a PR to fix ser/de issue of primitives classes in the java serializer. I already encountered this problem in different scenarios, so I am bringing it up. Would be great if someone wants to have a look at it! :)
https://issues.apache.org/jira/browse/SPARK-8730 https://github.com/apache/spark/pull/7122 Thanks, Eugen