A Cassandra cluster is a group of Cassandra nodes that operate together as a complete database system. Applications connect to the cluster through Spring Data Cassandra, whose starter enables Cassandra repository autoconfiguration with minimal explicit configuration. section 4.1.1
A practical development setup follows these steps:
- Replace relational persistence dependencies with the Spring Data Cassandra starter. section 4.1.1
- Run a single-node cluster in Docker when no existing cluster is available. section 4.1.1
- Create a keyspace for repositories; a keyspace groups Cassandra tables and uses replication and durable-write settings. section 4.1.1
- Configure the keyspace name, local datacenter, and, for a multi-node deployment, contact points, port, and credentials. section 4.1.1
$ docker network create cassandra-net
$ docker run --name my-cassandra \
--network cassandra-net \
-p 9042:9042 \
-d cassandra:latest
Use the Docker commands to create a network and start a single-node Cassandra cluster with port 9042 exposed. section 4.1.1
