40 minutes, Expert, Start Building
Migrate data from an existing Cassandra cluster to Astra using a Spark application.
Objectives
- Leverage Spark to migrate data from a Cassandra cluster to Cassandra on AstraDB.
How this works
We're using Spark to migrate data from a Cassandra cluster to Cassandra on AstraDB.
Get Started
To build and play with this app, follow the build instructions that are located here: https://github.com/DataStax-Examples/astra-spark-migration
Follow the instructions below to get started.
Prerequisites
Let's do some initial setup.
DataStax Astra
-
Create a DataStax Astra account if you don't already have one:
-
Define a database name, keyspace name and credentials (Take note of the DB Password)
-
Your Astra DB will be ready when the status will change from
Pending
toActive
💥💥💥 -
Locate the combo
Organization: <Your email>
on the top navigation. In the drop down menu, click your current organization. -
Scroll down to the bottom of the page and locate
Service Account
inSecurity Settings
and selectCopy Credentials
as shown below.
Github
-
Click
Use this template
at the top of the GitHub Repository: -
Enter a repository name and click 'Create repository from template':