简体   繁体   English

flink 作业有时通过 sql-client.sh 提交,没有任何检查点(改变它的方法是什么)或在失败的情况下如何恢复

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

for example sql-client.sh embedded insert into wap_fileused_daily(orgId, pdate, platform, platform_count) select u.orgId, u.pdate, coalesce(p.platform,'other'), sum(u.isMessage) as platform_count from users as u left join ua_map_platform as p on u.uaType = p.uatype where u.isMessage = 1 group by u.orgId, u.pdate, p.platform例如 sql-client.sh 嵌入 wap_fileused_daily(orgId, pdate, platform, platform_count) select u.orgId, u.pdate, coalesce(p.platform,'other'), sum(u.isMessage) as platform_count from users当你离开时加入 ua_map_platform as p on u.uaType = p.uatype where u.isMessage = 1 group by u.orgId, u.pdate, p.platform

it will show up as: enter image description here它将显示为:在此处输入图像描述

there will never be any checkpoint.永远不会有任何检查站。 Question: 1) how to trigger checkpoint ( alert job) 2) how to recover in case of failure问题:1)如何触发检查点(警报作业) 2)如何在失败的情况下恢复

You can specify execution configuration parameters in the SQL Client YAML file.您可以在 SQL 客户端 YAML 文件中指定执行配置参数。 For example, the following should work:例如,以下应该有效:

configuration:
  execution.checkpointing.interval: 42

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM