Integrating Apache Spark with Apache Cassandra

In this blog, we will see how can we make Apache Spark communicate with Apache Cassandra. Tools Used: Apache Spark 2.1.1 Apache Cassandra 2.2.10   Part 1: Adding some data in Cassandra Connect to cqlsh and add some sample data as shown below: cqlsh> CREATE KEYSPACE bigdataclassmumbai WITH replication = {‘class’: ‘SimpleStrategy’, ‘replication_factor’: 1}; cqlsh> […]

Read More

Integrating Apache Spark with MongoDB

In this tutorial, we will learn how to integrate Apache Spark with MongoDB database. We will be using spark-shell for interacting with MongoDB database and will perform read from MongoDB and write to MongoDB using spark-shell. Tools Used: Apache Spark 2.1.0 MongoDB 3.4.2 Pre-requisites: I am assuming you have downloaded and extracted Apache Spark and […]

Read More