In this example, we will start a Cassandra Cluster with the default snitch SimpleSnitch. To use another's types of Snitches, take a look at respective directories.
- Start containers
docker-compose up
- Initialize keyspace
docker-compose exec -d cassandra-seed /opt/cassandra/tools/bin/cassandra-stress write n=1 cl=one -mode native cql3 user=cassandra password=cassandra
docker-compose exec -d cassandra-seed cqlsh -e "ALTER TABLE keyspace1.standard1 with cdc=true"
- Start debezium
docker-compose exec cassandra-seed sh start-debezium.sh;
This can take some time as cassandra takes some time to start.
- Make changes
docker-compose exec -d cassandra-seed /opt/cassandra/tools/bin/cassandra-stress write n=100K cl=one -mode native cql3 user=cassandra password=cassandra
- Verify events on debezium logs
docker-compose exec cassandra-seed cat debezium.stdout.log | grep -i "commit";