Skip to content

n-traore/spark-cassandra-virtualbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up a Spark + Cassandra cluster on your local machine using terraform and Virtualbox. PS : This example uses a VM with Spark and Cassandra already installed

Setup

1. Clone the repo

git clone https://github.com/n-traore/spark-cassandra-virtualbox.git && \
cd spark-cassandra-virtualbox

2. Retrieve your machine interface that virtualbox will use to build your cluster

chmod +x ./get_machine_interface.sh
./get_machine_interface.sh

3. Run terraform commands to create the cluster

The terraform version used is 1.4. You might need to make some changes to the cluster definitions if using the latest terraform version as the API has evolved.

terraform init

# to check the resources that will be created
terraform plan

# create
terraform apply --auto-approve

 

tf-apply-cluster(2)

4. Clean-up

Delete the cluster by running the following command:

terraform destroy --auto-approve

About

Local Spark + Cassandra cluster on Virtualbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published