[英]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.