Last active
March 16, 2021 22:37
-
-
Save 2013techsmarts/0553683fd0383b1859e64df2309f76c3 to your computer and use it in GitHub Desktop.
Debezium MySql Source Connector Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -k -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d '{ | |
"name": "mysql-connector-demo", | |
"config": { | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"database.hostname": "localhost", | |
"database.port": "3306", | |
"database.user": "debezium", | |
"database.password": "dbz", | |
"database.server.id": "1", | |
"database.server.name": "dbserver1", | |
"database.history.kafka.bootstrap.servers": "localhost:9092", | |
"database.history.kafka.topic": "customers_audit", | |
"table.include.list": "inventory.customers", | |
"transforms": "Reroute", | |
"transforms.Reroute.type": "io.debezium.transforms.ByLogicalTableRouter", | |
"transforms.Reroute.topic.regex": "([^.]+)\\.([^.]+)\\.([^.]+)", | |
"transforms.Reroute.topic.replacement": "$3" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment