[英]Apache Kafka Connect VS Confluent connector
使用 Apache Kafka Connect API 和 Confluent Kafka Connect API 有什么区别?
As mike mentioned, there is no core difference between Apache kafka connect and confluent kafka connect.正如 mike 所提到的,Apache kafka connect 和 confluent kafka connect 之间没有核心区别。
As an example of using JDBC Connector plugin from Confluent with MySQL database to read data from MySQL and send it to kafka topic.作为使用 Confluent 中的 JDBC 连接器插件和 MySQL 数据库从 MySQL 读取数据并将其发送到 kafka 主题的示例。
For a quick demo on your laptop, follow below main steps:要在您的笔记本电脑上进行快速演示,请按照以下主要步骤操作:
kafka-server-start
script.使用kafka-server-start
脚本运行单个 Kafka 代理。kafka-connect-jdbc
from Confluent Hub从 Confluent Hub 下载kafka-connect-jdbc
plugin.path
in connect-standalone.properties
to include the full path to extracted kafka-connect-jdbc
files.编辑connect-standalone.properties
中的plugin.path
以包含提取kafka-connect-jdbc
文件的完整路径。kafka-connect-jdbc
folder with other JARs (you should see sqlite JAR is already there)下载 mysql 驱动程序并将其复制到kafka-connect-jdbc
文件夹和其他 JAR 中(您应该看到 sqlite JAR 已经存在)$KAFKA_HOME/bin/connect-standalone.sh ../config/connect-standalone.properties ../config/jdbc-connector-config.properties
Useful links有用的链接
https://www.confluent.io/blog/kafka-connect-deep-dive-jdbc-source-connector/ https://docs.confluent.io/current/connect/kafka-connect-jdbc/index.html https://www.confluent.io/blog/kafka-connect-deep-dive-jdbc-source-connector/ https://docs.confluent.io/current/connect/kafka-connect-jdbc/index.html
If you want to write code, then learn kafka producer api usage.如果你想写代码,那就学习 kafka producer api 用法。 https://docs.confluent.io/current/clients/producer.html https://kafka.apache.org/documentation/#producerapi https://docs.confluent.io/current/clients/producer.html https://kafka.apache.org/documentation/#producerapi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.