简体   繁体   English

Kafka Connect接收器“直通”连接器

[英]Kafka Connect Sink “Passthrough” Connector

Does the kafka jdbc sink connector support writing what it consumes to a different topic. kafka jdbc接收器连接器是否支持将其消耗的内容写入其他主题。 I am looking for a passthrough mechanism and illustrated below. 我正在寻找一种传递机制,如下所示。 If it does not, I could chain a sink and the source (reading from where the sink wrote) but do not think that will be as performant. 如果不是这样,我可以将一个接收器和源链接起来(从接收器写的位置读取),但不要认为这会起到性能作用。 Perhaps I could modify the existing sink connector to accomplish this? 也许我可以修改现有的接收器连接器来完成此操作?

Topic 1 -> Sink Connector ->  Topic 2
               |
               V
               DB

The Connect Framework allows writing to a Dead-Letter Queue topic for error-causing records, but there is no such tee -like feature in Connect. Connect Framework允许写入“死信队列”主题以记录引起错误的记录,但是Connect中没有类似tee的功能。

If you want a source reading from what a sink wrote, then you would have two connectors. 如果要从接收器写入的内容中读取源代码,则将有两个连接器。

For example, 例如,

JDBC_Sink -> DB -> Debezium -> Topic

我建议编写一个简单的Kafka Streams应用程序,将从主题1到主题2的所有内容转发。并按原样使用连接器将主题1中的内容接收到DB中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM