riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Helper script to provision a CCM cluster in MacOS #736

Closed frankgh closed 2 years ago

frankgh commented 2 years ago

The ccm-macos.bash script allows the creation of a CCM cluster. It supports the NUM_NODES parameter to determine the number of nodes to configure in the cluster. Additionally, it will configure the required interfaces required for the cluster to start up. It requires sudo for the operation, so this script will need elevated privileges to configure the interfaces required.

Additionally, this script relies on a configured virtualenv. Conveniently, it can leverage Cassandra's pylib virtualenv. If the virtualenv is not loaded, it will check whether Cassandra's pylib virtualenv has been already initialized. If so, then it will activate the virtualenv. Otherwise, it will initialize the virtualenv and install the requirements.

The name of the cluster defaults to test, but it can be configured by providing the CLUSTER_NAME parameter.

frankgh commented 2 years ago

@driftx would you be able to take a look at this?

driftx commented 2 years ago

I don't have a mac to test with but this looks good to me.