Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 941 Bytes

README.md

File metadata and controls

28 lines (26 loc) · 941 Bytes

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.

  1. Start containers
docker-compose up
  1. 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"
  1. Start debezium
docker-compose exec cassandra-seed  sh start-debezium.sh;

This can take some time as cassandra takes some time to start.

  1. 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
  1. Verify events on debezium logs
docker-compose exec cassandra-seed  cat debezium.stdout.log | grep -i "commit";