Dear ,

Hope you are doing well.

As such now we only have below working code for spark-cassandra.

Please install cassandra in the VM.

Please follow the below steps.

Installing cassandra on VM:

==> sudo /etc/yum.repos.d/datastax.repo

Add the following line to it and save it.

name = DataStax Repo for Apache Cassandra
baseurl =
enabled = 1
gpgcheck = 0

==> sudo yum -y install dsc20

==> sudo service cassandra start

==> cqlsh (to start cassandra)

==> Now create key space


==> Create table and insert data to it.



Now start the spark shell with below command.

spark-shell --packages datastax:spark-cassandra-connector:1.6.6-s_2.10
val rdd = sc.cassandraTable("sample", "mysample")


Please try and let us know if you face any issue.

We are eagerly waiting for your response.