其他分享
首页 > 其他分享> > 2021-07-22

2021-07-22

作者:互联网

debezium 搭建使用


now you can see the data’s change on kafka and can use the connector’s api

1.get the connectors

GET : 192.168.56.102:8083/connectors

2.create a connector

POST: 192.168.56.102:8083/connectors

raw:

{
"name": "inventory",
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "1",
"database.hostname": "192.168.56.103",
"database.port": "5435",
"database.dbname": "postgres",
"hstore.handling.mode":"json",
"database.user": "postgres",
"database.password": "postgres",
"database.server.name" : "server-name",
"plugin.name":"pgoutput"
}
}

3.get the status of connectors

GET : 192.168.56.102:8083/connectors/inventory/status

标签:postgres,22,database,name,kafka,connector,2021,debezium,07
来源: https://blog.csdn.net/weixin_43518224/article/details/118990497