简体   繁体   English

Apache Kafka Connect VS Confluent 连接器

[英]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:要在您的笔记本电脑上进行快速演示,请按照以下主要步骤操作:

  1. Download Apache Kafka (from either Apache site, or you can download Confluent Platform)下载 Apache Kafka(从 Apache 站点,或者您可以下载 Confluent Platform)
  2. Run single Kafka broker using kafka-server-start script.使用kafka-server-start脚本运行单个 Kafka 代理。
  3. Download kafka-connect-jdbc from Confluent Hub从 Confluent Hub 下载kafka-connect-jdbc
  4. Edit 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文件的完整路径。
  5. Download and copy mysql driver into kafka-connect-jdbc folder with other JARs (you should see sqlite JAR is already there)下载 mysql 驱动程序并将其复制到kafka-connect-jdbc文件夹和其他 JAR 中(您应该看到 sqlite JAR 已经存在)
  6. create jdbc source connector configuration file创建 jdbc 源连接器配置文件
  7. run Kafka connect in standalone mode with jdbc source connector configuration使用 jdbc 源连接器配置以独立模式运行 Kafka 连接

$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.

相关问题 Confluent JDBC 与 Apache Kafka 连接 - Confluent JDBC connect with Apache Kafka Confluent Kafka Connect Elasticsearch 连接器安装 - Confluent Kafka Connect Elasticsearch connector installation 合流Kafka Connect分布式模式jdbc连接器 - Confluent Kafka connect distributed mode jdbc connector 合流Kafka Connect HDFS Sink连接器延迟 - Confluent Kafka Connect HDFS Sink connector latency 如何在 docker 环境中访问 Kafka 连接器(融合日志连接) - How to access Kafka Connector (confluent log connect) in a docker enviroment Confluent Kafka Connect MySQL 接收器连接器的开源替代方案? - Open Source alternative for Confluent Kafka Connect MySQL Sink Connector? Kafka Connect Confluent S3 Sink 连接器:找不到类 io.confluent.connect.avro.AvroConverter - Kafka Connect Confluent S3 Sink Connector: Class io.confluent.connect.avro.AvroConverter could not be found Kafka 连接器“无法连接到服务器” - 连接到融合云的 dockerized kafka-connect worker - Kafka connector "Unable to connect to the server" - dockerized kafka-connect worker that connects to confluent cloud Apache kafka 连接 - 自定义 websocket 连接器 - Apache kafka connect - custom websocket connector 如何在本地部署apache kafka connect(无Confluent) - How to deploy apache kafka connect locally (without Confluent)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM