Kafka Connector操作命令集:提交、查看、删除、更新、重启和查看Kafka Connector插件版本
一、提交Kafka Connector
- POST /connectors:新建一个connector,请求体必须是json格式并且需要包含name字段和config字段,name是connector的名字,config是json格式,必须包含你的connector的配置信息。
curl -u debezium:optics123 'http://debezium1:8083/connectors' -X POST -i -H "Content-Type:application/json" -d
'{
"name": "mysql-otics-prod-connector",
"config": {
"connector.class": "io.debezium.connector.mysql.MySqlConnector",
"task.max": "1",
"database.hostname": "192.168.239.131",
"database.port": "3306",
"database.dbname": "optics",
"database.user": "optics",
"data