The provided Cassandra package and setup scripts were designed for either a single node or a multi-node environment.
Follow the setup script configuration for the correct settings, depending on your environment.
The script should be run separately on each node, in the order of designated node numbers. It should not be run simultaneously as this may cause configuration and operation issues.
Make sure all Cassandra related activities were preformed; click here to get the full list of activities.
Verify that Python version 2.7 is being used
python --version
Log in to the previously created user that was designated to the Cassandra installation.
Download the latest Cassandra package (located here).
Log in to the Linux server as the 'Cassandra' user and copy the package to the home directory.
Untar the package (the package name varies according to the version) as follows:
tar -zxvf k2v_cassandra-x.xx.xxx.tar.gz -C /opt/apps/cassandra && source /opt/apps/cassandra/.bash_profile
Note: The setup script will use the folder it runs from.
The number of seed nodes should match the chosen replication factor number.
Mandatory required details:
Optional details:
Run the following command on the seed nodes only (start with the 1st node, then run it one by one on the 2nd and 3rd):
/opt/apps/cassandra/cassandra-setup.sh --cassandra_seeds 10.0.0.1,10.0.0.2,10.0.0.3 --cassandra_user k2admin --cassandra_password changeit --cassandra_replication_factor 3
Once all seed nodes are up and running, run the same command on all the rest of the Cassandra nodes (one by one):
In case you have no additional nodes, run the command on one of the existing seeds node to finalize configuration.
/opt/apps/cassandra/cassandra-setup.sh --cassandra_seeds 10.0.0.1,10.0.0.2,10.0.0.3 --cassandra_user k2admin --cassandra_password changeit --cassandra_replication_factor 3
Run the following command:
/opt/apps/cassandra/cassandra-setup.sh --listeners --cassandra_user k2admin --cassandra_password changeit
To stop the Cassandra cluster, run the following command on each node (seed nodes should be shut down last):
/opt/apps/cassandra/cassandra/bin/stop-server
To start the Cassandra cluster, run the following command on each node, one by one, (seed nodes should be started first):
/opt/apps/cassandra/cassandra/bin/cassandra
~
To check all nodes statuses, run the nodetool command:
/opt/apps/cassandra/cassandra/bin/nodetool -u k2admin -pw changeit status
The provided Cassandra package and setup scripts were designed for either a single node or a multi-node environment.
Follow the setup script configuration for the correct settings, depending on your environment.
The script should be run separately on each node, in the order of designated node numbers. It should not be run simultaneously as this may cause configuration and operation issues.
Make sure all Cassandra related activities were preformed; click here to get the full list of activities.
Verify that Python version 2.7 is being used
python --version
Log in to the previously created user that was designated to the Cassandra installation.
Download the latest Cassandra package (located here).
Log in to the Linux server as the 'Cassandra' user and copy the package to the home directory.
Untar the package (the package name varies according to the version) as follows:
tar -zxvf k2v_cassandra-x.xx.xxx.tar.gz -C /opt/apps/cassandra && source /opt/apps/cassandra/.bash_profile
Note: The setup script will use the folder it runs from.
The number of seed nodes should match the chosen replication factor number.
Mandatory required details:
Optional details:
Run the following command on the seed nodes only (start with the 1st node, then run it one by one on the 2nd and 3rd):
/opt/apps/cassandra/cassandra-setup.sh --cassandra_seeds 10.0.0.1,10.0.0.2,10.0.0.3 --cassandra_user k2admin --cassandra_password changeit --cassandra_replication_factor 3
Once all seed nodes are up and running, run the same command on all the rest of the Cassandra nodes (one by one):
In case you have no additional nodes, run the command on one of the existing seeds node to finalize configuration.
/opt/apps/cassandra/cassandra-setup.sh --cassandra_seeds 10.0.0.1,10.0.0.2,10.0.0.3 --cassandra_user k2admin --cassandra_password changeit --cassandra_replication_factor 3
Run the following command:
/opt/apps/cassandra/cassandra-setup.sh --listeners --cassandra_user k2admin --cassandra_password changeit
To stop the Cassandra cluster, run the following command on each node (seed nodes should be shut down last):
/opt/apps/cassandra/cassandra/bin/stop-server
To start the Cassandra cluster, run the following command on each node, one by one, (seed nodes should be started first):
/opt/apps/cassandra/cassandra/bin/cassandra
~
To check all nodes statuses, run the nodetool command:
/opt/apps/cassandra/cassandra/bin/nodetool -u k2admin -pw changeit status