Using the Cassandra context 

The Cassandra context was removed in DataStax Enterprise 4.7. Instead, use the Spark context to create a CassandraRDD.

The Cassandra context was removed in DataStax Enterprise 4.7. Instead, use the Spark context to create a CassandraRDD.