Created
April 8, 2021 22:53
-
-
Save davidlzs/538832420d5984a23263598ff1cdd177 to your computer and use it in GitHub Desktop.
Using ccm to create and manage local Cassandra cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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