Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

arditmeti1337_187894 avatar image
arditmeti1337_187894 asked ·

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 characters needed characters left characters exceeded

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 characters needed characters left characters exceeded

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