当前位置: 代码网 > it编程>数据库>MsSqlserver > flink cdc,standalone模式下,任务运行一段时间taskmanager挂掉

flink cdc,standalone模式下,任务运行一段时间taskmanager挂掉

2024年07月31日 MsSqlserver 我要评论
这个配置的含义是,超时(以毫秒为单位),在此之后任务取消超时并导致致命的 TaskManager 错误。

在使用flink cdc,配置任务运行,过了几天后,任务无故取消,超时,导致taskmanager挂掉,相关异常如下:
异常1:
did not react to cancelling signal interrupting; it is stuck for 30 seconds in method:org.apache.flink.connector.idbc.internal.jdbcoutputformat,flush (idbcoutoutformat.iava:215)
在这里插入图片描述
异常2:
task 'source: custom source -> map -> map -> to: row -> map -> sink: unnamed (1/3)’ did not react to cancelling signal for
30 seconds task did not exit gracefully within 180 + seconds.

处理该问题,需要在 flink-conf.yaml配置文件加上:
task.cancellation.timeout: 0
这个配置的含义是,超时(以毫秒为单位),在此之后任务取消超时并导致致命的 taskmanager 错误。

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com