DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


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.