创建kafka连接器时,使用localhost:8083,总是得到一个错误:curl(7)连接被拒绝

tzdcorbm  于 2021-06-07  发布在  Kafka
关注(0)|答案(0)|浏览(380)

我正在尝试使用debezium将mysql连接到kafka。这是restapi,我正在尝试执行。

curl -i -X POST -H "Accept:application/json" \
    -H  "Content-Type:application/json" http://localhost:8083/connectors/ \
    -d '{
      "name": "mysql-connector",
      "config": {
            "connector.class": "io.debezium.connector.mysql.MySqlConnector",
            "database.hostname": "localhost",
            "database.port": "3306",
            "database.user": "debezium",
            "database.password": "dbz",
            "database.server.id": "223344",
            "database.server.name": "demo",
            "database.history.kafka.bootstrap.servers": "localhost:9092",
            "database.history.kafka.topic": "dbhistory.demo" ,
            "include.schema.changes": "true"
       }
    }'

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题