Skip to content

Deploy Cassandra with ccm

Preparing ccm

pip install ccm
## or
brew install ccm

Creating a Cluster

ccm create -v 4.0.0 -n 3 test_cluster --vnodes
ccm list
ccm status
ccm start
ccm node1 status
ccm node1 ring
## Using cqlsh with CCM
ccm node1 cqlsh
## Get SSTable Information
ccm node1 getsstables

Adding Nodes to a Cluster

ccm add node4 -i 127.0.0.4 -j 7400

Reference

  • Cassandra The Definitive Guide - Distributed Data at Web Scale (Eben Hewitt, Jeff Carpenter)
  • Expert Apache Cassandra Administration (Sam R. Alapati)
Feedback