[英]flink job submit through sql-client.sh sometime without any checkpoint (what is the way to alter it) or how to recover in case of failure
[英]How to configure flink SQL client to submit job with checkpointing enabled?
启用检查点的 flinksql-client 配置文件的示例是什么?
当我通过 flink sql 客户端提交流式作业时,检查点未启用。
checkpointing配置不能在flink sql客户端配置文件中设置,但可以在集群配置文件(flink-conf.yaml)中设置。
您至少应该配置execution.checkpointing.interval
、 state.backend
和state.checkpoints.dir
。
像这样的东西,例如:
execution.checkpointing.interval: 10000
state.backend: filesystem
state.checkpoints.dir: file:///tmp/flink-checkpoints-directory
state.savepoints.dir: file:///tmp/flink-savepoints-directory
据我在文档中看到的,您应该能够通过设置如下属性从 sql 客户端执行此操作:
SET 'state.checkpoints.dir' = 'hdfs:///bar/foo/';
SET 'execution.checkpointing.mode' = 'EXACTLY_ONCE';
SET 'execution.checkpointing.interval' = '30min';
SET 'execution.checkpointing.min-pause' = '20min';
SET 'execution.checkpointing.max-concurrent-checkpoints' = '1';
SET 'execution.checkpointing.prefer-checkpoint-for-recovery' = 'true';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.