简体   繁体   English

将 Kafka 连接 MongoDB 连接器注册为 SCDF 中的应用程序

[英]Register Kafka connect MongoDB connectors as apps in SCDF

I'll get straight to the point :我会说到点子上:

Is it possible to register the MongoDB Kafka sink and source connectors as applications in Spring Cloud Data Flow ?是否可以将 MongoDB Kafka 接收器和源连接器注册为 Spring Cloud Data Flow 中的应用程序? or other types of Kafka connectors in the matter of fact ?事实上,还是其他类型的 Kafka 连接器?

MongoDB Kafka Source connector requires MongoDB to be configured as a replicaset cluster in order to read the change streams in the opLog (a standalone MongoDB instance cannot produce a change stream). MongoDB Kafka Source 连接器要求将 MongoDB 配置为副本集集群,以便读取 opLog 中的更改流(独立的 MongoDB 实例无法生成更改流)。 Does the SCDF MongoDB source starter use MongoDb cluster's change streams to detect change events ? SCDF MongoDB 源启动器是否使用 MongoDb 集群的更改流来检测更改事件? or does it read changes directly from the MongoDB database ?还是直接从 MongoDB 数据库读取更改?

Thanks谢谢

We have looked at integrating Spring Cloud Stream with Kafka connectors.我们已经研究了将 Spring Cloud Stream 与 Kafka 连接器集成。 There is no easy way to do it without custom code.如果没有自定义代码,就没有简单的方法可以做到这一点。 We have a change data capture source that works with MongoDB as you describe: https://github.com/spring-cloud/stream-applications/blob/main/functions/supplier/cdc-debezium-supplier/README.adoc我们有一个与您描述的 MongoDB 一起使用的变更数据捕获源: https : //github.com/spring-cloud/stream-applications/blob/main/functions/supplier/cdc-debezium-supplier/README.adoc

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

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