简体   繁体   English

将kafka连接到jdbc数据库

[英]Connect kafka to jdbc database

Can someone show me how to connect my kafka server to a jdbc postgresql database and retrieve data from it ?有人可以告诉我如何将我的 kafka 服务器连接到 jdbc postgresql 数据库并从中检索数据吗? all the tutorials on the internet got me more confused !互联网上的所有教程让我更加困惑!

You've not said which tutorials you've tried, or in what way you got confused…but the short answer is to use the Kafka Connect JDBC Connector .您没有说明您尝试过哪些教程,或者您以何种方式感到困惑……但简短的回答是使用Kafka Connect JDBC Connector

You can find examples here and here .您可以在此处此处找到示例。

Another option to explore is another Kafka Connect connector, called Debezium .另一个探索的选择是另一个 Kafka Connect 连接器,称为Debezium This implements proper Change-Data-Capture (CDC) against Postgres.这对 Postgres 实现了正确的更改数据捕获 (CDC)。

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

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