Apache Spark 1.5 with Cassandra : Class cast exception

霸气de小男生 提交于 2019-12-06 14:14:12

I found out the issue finally.

The problem was that I was only adding my bundled Application jar (fat jar) into the spark context and excluded the following two jars:

1. spark-assembly-1.5.0-hadoop2.6.0.jar

2. spark-cassandra-connector-java-assembly-1.5.0-M1-SNAPSHOT.jar.

It turns out that I should also add spark-cassandra-connector-java-assembly-1.5.0-M1-SNAPSHOT.jar to the spark context and only exclude the spark-assembly-1.5.0-hadoop2.6.0.jar.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!