英文:
How to perform Mongodb CDC using wso2 streaming integrator?
问题
我很困惑,不知道如何使用WSO2 Streaming Integrator执行Mongo CDC。我按照这个文档设置了Mongo复制集。我像下面这样配置了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,
but it doesn't work, I got these error logs . Can any one help me to fix this? Thanks in advance.
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论