Skip to content

Deploy Cassandra with ccm

The Cassandra Cluster Manager (CCM) is a script library that helps you create and run a Cassandra cluster on a local server.

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)

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App