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
git clone https://github.com/n-traore/spark-cassandra-virtualbox.git && \
cd spark-cassandra-virtualbox
chmod +x ./get_machine_interface.sh
./get_machine_interface.sh
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
Delete the cluster by running the following command:
terraform destroy --auto-approve