为什么Apache Camel Debezuim Mongodb连接器的URI参数未知?

aor9mmx1  于 9个月前  发布在  Apache
关注(0)|答案(1)|浏览(92)

我在为mondodb debezium配置camel路由时遇到此错误。

org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:195)
at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:96)
at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:76)
... 29 more\r\nCaused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: 
debezium-mongodb://MY-EVENT-LISTENER?mongodbHosts=abc-de-u1234.net%3A27017
&mongodbName=myMongoDb
&mongodbPassword=xxxxxx
&mongodbUser=xxxxxx
&offsetStorageFileName=c%3A%5Ctemp%5Coffset-file-1.dat
&topicPrefix=dbz1 due to: 
There are 2 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. 
Unknown parameters=[{mongodbHosts=abc-de-u1234.net:27017, mongodbName=myMongoDb}]

我的gradle依赖是

dependencies {
   
    

    implementation 'org.apache.camel.springboot:camel-spring-boot-starter:4.0.0'
    implementation 'org.apache.camel.springboot:camel-debezium-mongodb-starter:4.0.0'
...
}

期待Maven的帮助来解决这个问题。谢谢.

相关问题