Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra connector Apache Spark: local class incompatible

Im trying to join a rdd with Cassandra Table using the Cassandra Spark connector:

samplerdd.joinWithCassandraTable(keyspace, CassandraParams.table)
      .on(SomeColumns(t.date as a.date,
        t.key as a.key)

It works in standalone mode but when I execute in cluster mode I get this error:

Job aborted due to stage failure: Task 6 in stage 0.0 failed 4 times, most recent failure: Lost task 6.3 in stage 0.0 (TID 20, 10.10.10.51): java.io.InvalidClassException: com.datastax.spark.connector.rdd.CassandraJoinRDD; local class incompatible: stream classdesc serialVersionUID = 6155891939893411978, local class serialVersionUID = 1245204129865863681

I have already checked the jars in the master and slaves and It seems sames versions.

Im using spark 2.0.0, Cassandra 3.7, Cassandra-Spark Connector 2.0.0 M2, Cassandra Driver Core 3.1.0 and Scala 2.11.8

What could it be happening?

like image 347
Manuel Valero Avatar asked Nov 08 '22 03:11

Manuel Valero


1 Answers

Finally solved. Update cassandra-driver-core dependency to 3.0.0 and works. – Manuel Valero just now edit

like image 83
Manuel Valero Avatar answered Nov 14 '22 22:11

Manuel Valero