启动canal,canal.log存在INVALID_TOPIC_EXCEPTION问题
[kafka-producer-network-thread | producer-2] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-2] Error while fetching metadata with correlation id 7168 : {=INVALID_TOPIC_EXCEPTION}
解决方案
canal instance.properties需要打开canal.mq.topic参数
canal.mq.topic 这一项最好不要注释,可以创建一个不适用的topic配置该项
# mq config
canal.mq.topic=xxxx
原因:如果有一些不符合dynamicTopic匹配的语句的消息会发送到该topic而避免报错 INVALID_TOPIC_EXCEPTION
本文解决启动Canal时遇到的INVALID_TOPIC_EXCEPTION错误。通过在canal.instance.properties文件中正确配置canal.mq.topic参数来避免此问题。即使消息不匹配dynamicTopic,也能确保消息正常发送。
337

被折叠的 条评论
为什么被折叠?



