Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save davidlzs/538832420d5984a23263598ff1cdd177 to your computer and use it in GitHub Desktop.

Select an option

Save davidlzs/538832420d5984a23263598ff1cdd177 to your computer and use it in GitHub Desktop.
Using ccm to create and manage local Cassandra cluster
# create a three node Cassandra Cluster
# the following command will create a cluster with Cassandra verion: 3.11.10, with 3 nodes, and start the cluster
python ccm.py create test -v 3.11.10 -n 3 -s
# view the status of the ring from node1's perspective, you can change to node2, node3 accordingly
python ccm.py node1 ring
# start a cqlsh connected to node1
python ccm.py node1 cqlsh
# stop node2
python ccm.py node2 stop
# start node2
python ccm.py node2 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment