debezium 订阅mysql The ‘topic.prefix‘ value is invalid: A value is required

本文介绍了使用Docker搭建MySQL+Debezium+kafka+logstash+elasticsearch过程中遇到的问题,重点讨论了Debezium无法订阅MySQL的具体配置及解决办法。

想搭建mysql+debezium+kafka+logstash+elasticsearch
目前mysql、kafka、debezium都已经搭建成功,但是到debezium订阅mysql死活订阅不上去,百度也搜索不到相关信息
mysql debezium都是用docker搭建
kafka是linux环境搭建
在这里插入图片描述

{
    "name": "mysql-world-connector001",
    "config": {
        "connector.class": "io.debezium.connector.mysql.MySqlConnector",
        "tasks.max": "1",
        "database.hostname": "192.168.16.132",
        "database.port": "3306",
        "database.user": "root",
        "database.password": "123456",
        "database.server.id": "3306",
        "database.server.name": "world",
        "database.include.list": "world",
        "database.history.kafka.bootstrap.servers": "192.168.16.132:9092",
        "database.history.kafka.topic": "dbhistory.world",
        "include.schema.changes": "true",
        "database.allowPublicKeyRetrieval": "true"
    }
}


{
    "error_code": 400,
    "message": "Connector configuration is invalid and contains the following 1 error(s):\nThe 'topic.prefix' value is invalid: A value is required\nYou can also find the above list of errors at the endpoint `/connector-plugins/{connectorType}/config/validate`"
}

应用运行情况
在这里插入图片描述

kafka
在这里插入图片描述
debezium(想尝试用debezium-ui去连接,但也报这个错)
在这里插入图片描述

mysql
在这里插入图片描述
解决:
把debezium换成1.9版本即可成功

docker pull debezium/connect:1.9

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值