简体   繁体   English

如何在 Kafka 中运行 mongodb 连接器?

[英]How to run mongodb connector in Kafka?

I have downloaded a binary Kafka's files then Jar file of conector.我已经下载了二进制 Kafka 文件,然后是连接器的 Jar 文件。 Then specified the path to connector jar and configured config file with connection to mongo.然后指定连接器 jar 的路径并配置与 mongo 连接的配置文件。

After I have laucnhed zookkepper, run Kafka and created topic.在我启动 zookkepper 之后,运行 Kafka 并创建主题。 How to lauch connector source?如何启动连接器源?

There are connect-standalone and connect-distributed scripts in the Kafka bin folder for running Kafka Connect. Kafka bin 文件夹中有connect-standaloneconnect-distributed脚本,用于运行 Kafka Connect。

You'll also need to edit the respective properties files to make sure the Mongo connector plugin gets loaded您还需要编辑相应的属性文件以确保加载了 Mongo 连接器插件

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

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