开发者社区 > 大数据与机器学习 > 实时计算 Flink > 正文

Flink oracle cdc遇到过这种情况吗?

Flink oracle cdc遇到过 None of log files contains offset SCN 这个问题没?资料说设置这个.log.mining.transaction.retention.hours参数,但是设置了没用,还是报错.offsetSCN=579279935580, commitOffsetSCN=579279935416
2024-04-11 11:08:31,717 INFO org.apache.flink.streaming.runtime.operators.sink.AbstractStreamingCommitterHandler [] - Committing the state for checkpoint 4
2024-04-11 11:08:56,552 ERROR io.debezium.connector.oracle.logminer.LogMinerHelper [] - Mining session stopped due to the java.lang.IllegalStateException: None of log files contains offset SCN: 579279993105, re-snapshot is required.
2024-04-11 11:08:56,552 ERROR io.debezium.pipeline.ErrorHandler [] - Producer failure
java.lang.IllegalStateException: None of log files contains offset SCN: 579279993105, re-snapshot is required.
at io.debezium.connector.oracle.logminer.LogMinerHelper.setLogFilesForMining(LogMinerHelper.java:484) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.initializeRedoLogsForMining(LogMinerStreamingChangeEventSource.java:378) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.execute(LogMinerStreamingChangeEventSource.java:246) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.execute(LogMinerStreamingChangeEventSource.java:71) ~[flink-sql-connector-oracle-cdc-2.3.0.jar:2.3.0]
at io.debezium.pipeline.ChangeEventSourceCoordinator.streamEvents(ChangeEventSourceCoordinator.java:160) ~[flink-sql-connector-mysql-cdc-2.3.0.jar:2.3.0]
at io.debezium.pipeline.ChangeEventSourceCoordinator.lambda$start$0(ChangeEventSourceCoordinator.java:122) ~[flink-sql-connector-mysql-cdc-2.3.0.jar:2.3.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut

展开
收起
小小鹿鹿鹿 2024-04-15 20:11:16 56 0
1 条回答
写回答
取消 提交回答
  • 归档日志被删了会报这个错.归档日志的清除策略要保留最近一段时间的,比如保留最近一天的。另外个情况就是丛savepoint或checkpoint恢复,时间间隔太久了被删了也正常。此回答来自钉群Flink CDC 社区。

    2024-04-15 21:52:43
    赞同 3 展开评论 打赏

实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。

相关产品

  • 实时计算 Flink版
  • 相关电子书

    更多
    PostgresChina2018_樊文凯_ORACLE数据库和应用异构迁移最佳实践 立即下载
    PostgresChina2018_王帅_从Oracle到PostgreSQL的数据迁移 立即下载
    Oracle云上最佳实践 立即下载

    相关镜像