question

arditmeti1337_187894 avatar image
arditmeti1337_187894 asked Erick Ramirez answered

Is it possible to read from Cassandra in a map operation of a Spark RDD?

Hi guys, I'm new to spark and cassandra. I was wondering if its possible (or a workaround using other tools) to read from cassandra while inside a map operation of a spark rdd?

sparkconnector
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

@arditmeti1337_187894 In case you haven't already seen it, the spark-cassandra-connector documentation has example code for Accessing Cassandra data with CassandraRDD.

You also mentioned that you are new to Cassandra and Spark so I'd like to recommend that you do the free courses at DataStax Academy. It will answer a lot of questions for new users and will get you started on the right path. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.