flink-cdc icon indicating copy to clipboard operation
flink-cdc copied to clipboard

postgres cdc ,restore from checkpoint failed

Open heiren93 opened this issue 4 years ago • 2 comments

my checkpoint settings are as below :

 configuration.setString("execution.checkpointing.interval", "10 s");
configuration.setString("execution.checkpointing.externalized-checkpoint-retention","RETAIN_ON_CANCELLATION");
configuration.setString("execution.checkpointing.mode","EXACTLY_ONCE");  

the checkpoint are created in path "hdfs://HermesServices/flink-checkpoints/f9bf57fe21994d663851d3b07cf4dd34/chk-20"

when I canceled the flink cdc job and restart from the checkpoint .my setting is :

configuration.setString("execution.savepoint.path","hdfs://HermesServices/flink-checkpoints/f9bf57fe21994d663851d3b07cf4dd34/chk-20");

it do not work.

image

heiren93 avatar Apr 21 '22 09:04 heiren93

I solved the problem. my job mode is yarn application.The checkpoints configuration is supposed to set before "yarnClusterDescriptor .deployApplicationCluster" and should not setting in pipeline.jars. configuration.setString("execution.savepoint.path","hdfs://HermesServices/flink-checkpoints/f9bf57fe21994d663851d3b07cf4dd34/chk-20");

heiren93 avatar May 11 '22 03:05 heiren93

Closing this issue because it was created before version 2.3.0 (2022-11-10). Please try the latest version of Flink CDC to see if the issue has been resolved. If the issue is still valid, kindly report it on Apache Jira under project Flink with component tag Flink CDC. Thank you!

PatrickRen avatar Feb 28 '24 15:02 PatrickRen