- Nguyen Hung Tam A0112059N
- Bui Do Hiep A0126502U
- Adrian Bratteby A0175596L
- Download Cassandra into
/temp
folder
$ curl -o apache-cassandra-3.11.0-bin.tar.gz https://www-eu.apache.org/dist/cassandra/3.11.0/apache-cassandra-3.11.0-bin.tar.gz
- Extract the file
$ tar -xvf apache-cassandra-3.11.0-bin.tar.gz
- Copy config
For each node, copy corresponding
cassandra.yml
file into the/temp/apache-cassandra-3.11.0/conf/
folder - Run cassandra
$ /temp/apache-cassandra-3.11.0/bin/cassandra
Remember to start the seed nodes before other nodes.
You need to have python 2
and pip
to install cassandra python driver.
Because you might not have sudo access, you can take a look at this guide to install pip without sudo
Install cassandra python driver by running
$ pip install --user cassandra-driver
- Load data
$ bash load_data.sh <data-files-absolute-path>
- Run transaction
On node
node_id
withnode_id
from 1 to 5, we run the following command to start the clients
$ bash main.sh <node_id> <number_clients> <consistency_level>
- Summary
$ bash summary.sh <number_clients> <consistency_level>
Before running any experient, remember to create the log foler in the root project folder
$ mkdir log
After finishing any experiment, you can take a look at all the log file in the log folder