ccm remove cdc_cluster
ccm create cdc_cluster -v 3.11.3
ccm populate -n 1
ccm node1 start
ccm node1 cqlsh
CREATE KEYSPACE cdc_test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1};
USE cdc_test;
CREATE TABLE orders (id int, amount double, first_order boolean, PRIMARY KEY(id)) WITH cdc=true;
INSERT INTO orders (id, amount, first_order) VALUES (1, 100, true) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (2, 100, false) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (3, 100, true) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (4, 100, false) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (5, 100, true) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (6, 100, false) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (7, 100, true) IF NOT EXISTS;
INSERT INTO orders (id, amount, first_order) VALUES (8, 100, false) IF NOT EXISTS;