- need to enable CDC of sql server and for the tables you wish to track
to run this example you need to have SQL server installed.
$ kafka_2.12-2.2.1/bin/zookeeper-server-start.sh zookeeper.properties$ kafka_2.12-2.2.1/bin/kafka-server-start.sh server.properties$ kafka_2.12-2.2.1/bin/connect-standalone.sh connect-standalone.properties sql-server-jdbc-connector.properties- table.whitelist - specify tables you want to monitor
- mode - specifiy the mode incrementing, timestamp, both
$ kafka_2.12-2.2.1/bin/kafka-topics.sh --bootstrap-server localhost:9092 --list- and check whether there are any topics starting from "incrementing-"
* you can change the prefix by changing topic.prefix in connector properties
$ kafka_2.12-2.2.1/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --from-beginning --topic incrementing-students