如何使用WSO2流集成器执行MongoDB CDC?

huangapple go评论91阅读模式
英文:

How to perform Mongodb CDC using wso2 streaming integrator?

问题

我很困惑,不知道如何使用WSO2 Streaming Integrator执行Mongo CDC。我按照这个文档设置了Mongo复制集。我像下面这样配置了CDC源:
如何使用WSO2流集成器执行MongoDB CDC?
但它不起作用,我得到了以下错误日志。有人可以帮我修复吗?先谢谢。
如何使用WSO2流集成器执行MongoDB CDC?

英文:

I'm so confused I don't know how to perform mongo cdc with wso2 streaming integrator. I set up a mongo replicaset follow this doc. I config cdc source like below,
如何使用WSO2流集成器执行MongoDB CDC?
but it doesn't work, I got these error logs . Can any one help me to fix this? Thanks in advance.
如何使用WSO2流集成器执行MongoDB CDC?

答案1

得分: 1

似乎是与 WSO2 SI 的扩展安装程序脚本有关的问题。mongo_java_driver 实际上是一个捆绑的 JAR 文件,因此不应再次转换为捆绑包。

要解决这个问题,请按照以下步骤操作:

步骤 1 - 卸载已安装的 MongoDB JAR 文件。
步骤 2 - 转到 WSO2SI_HOME/wso2/server/resources/extensionsInstaller 文件夹,打开 extensionDependencies.json 文件。
步骤 3 - 搜索 "name": "mongo-java-driver",并将配置的 usage type 从 "JAR" 更改为 "BUNDLE"。
步骤 4 - 通过扩展安装程序重新安装 MongoDB 扩展。

这将解决您的问题。

英文:

It seems like an issue with the extension installer script of the WSO2 SI. The mongo_java_driver is actually a bundled jar and due to that it should not be converted again into a bundle.

So to fix your problem, Follow the below steps,

Step 1- Uninstall the installed MongoDB jar.
Step 2- Go to WSO2SI_HOME/wso2/server/resources/extensionsInstaller folder and open the extensionDependencies.json file.
Step 3- Search for "name": "mongo-java-driver" and under the configurations usage type from "JAR" to "BUNDLE".
Step 4- reinstall the MongoDB extension via extension installer

This will solve your problem.

答案2

得分: 0

你是否已将mongo-java-driver复制到<PRODUCT_HOME>/lib目录?看起来cdc扩展无法找到MongoDB驱动程序。

英文:

Have you copy the mongo-java-driver to <PRODUCT_HOME>/lib directory? it seems like the cdc extension couldn't locate the mongodb drivers

huangapple
  • 本文由 发表于 2023年2月10日 15:34:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/75408115.html
  • wso2-streaming-integrator
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定