Can you try with Spark 1.3.1 http://hortonworks.com/hadoop-tutorial/using-apache-spark-technical-preview-with-hdp-2-2/
I ran your example without any issues on Spark 1.3.1.
Can you try with Spark 1.3.1 http://hortonworks.com/hadoop-tutorial/using-apache-spark-technical-preview-with-hdp-2-2/
I ran your example without any issues on Spark 1.3.1.