Skip to content

Python script to generate cassandra configuration directories and startup scripts.

Notifications You must be signed in to change notification settings

gdusbabek/cassandra-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

cassandra_maker.py

cassandra_maker.py is a python script that will generate cassandra configuration and startup scripts for multiple hosts.

Usage

To create configurations for hosts 127.0.0.1, 127.0.0.2, 127.0.0.3 in the foo directory, assuming bar contains the Cassandra source, execute this command:
cassandra_maker.py foo bar 1 2 3

This will create the following configuration directories:
foo/conf_1
foo/conf_2
foo/conf_3

Each of those configuration directories will contain all the files you would normally see in $CASSANDRA_HOME/conf.

It will also create the following empty data, commit log and saved-cache directories:
foo/data_1
foo/data_2
foo/data_3

You should also see the relevant in.sh include scripts and startup scripts in foo. At this point your new cluster should be ready to spin up.

Todo

  • detect platform and write either a .command or .sh script for the startup file.
  • specify entire hosts instead of integers.

Fan mail

My user name is gdusbabek, I use gmail.

About

Python script to generate cassandra configuration directories and startup scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages