flinkcdc用API方式读取mongodb的多个数据源报错?单个数据源没有问题,就是报这个错误org.bson.conversions.Bson.toBsonDocument()Lorg/bson/BsonDocument; #1609
Unanswered
tuoluzhe8521
asked this question in
Q&A
Replies: 1 comment
-
seems like there are loss of some jar files, or some jars are conflicted |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
为什么flinkcdc用API方式读取mongodb的多个数据源会报错呢?就是报这个错误org.bson.conversions.Bson.toBsonDocument()Lorg/bson/BsonDocument有大神知道么?下面是我粘贴的代码。
报错信息为:
ERROR (com.ververica.cdc.debezium.internal.Handover:reportError) - Reporting error: java.lang.NoSuchMethodError: org.bson.conversions.Bson.toBsonDocument()Lorg/bson/BsonDocument;
代码:
`
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setParallelism(1);
env.setBufferTimeout(BUFFER_TIMEOUT_MS);
env.enableCheckpointing(CHECKPOINT_INTERVAL_MS, CheckpointingMode.AT_LEAST_ONCE);
env.getCheckpointConfig().setCheckpointTimeout(CHECKPOINT_TIMEOUT_MS);
env.getCheckpointConfig().setMinPauseBetweenCheckpoints(CHECKPOINT_MIN_PAUSE_MS);
env.setRestartStrategy(RestartStrategies.failureRateRestart(3, Time.minutes(1), Time.seconds(10)));
StreamTableEnvironment.create(env);
`
Beta Was this translation helpful? Give feedback.
All reactions