How to perform Mongodb CDC using wso2 streaming integrator?

94 views Asked by At

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, enter image description here but it doesn't work, I got these error logs . Can any one help me to fix this? Thanks in advance. enter image description here

2

There are 2 answers

2
Anusha Jayasundara On

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

1
Anusha Jayasundara On

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.