admin 管理员组

文章数量: 887016

Apache Flink: savepoint Operations

Flink版本:1.11.1
以下操作基于hadoop yarn

文章目录

    • 查看Job信息
    • 保存一个savepoint
    • cancel生成savepoint
    • 带savepoint重启job

查看Job信息

flink list yarn-cluster -yid application_1629715128130_0031

保存一个savepoint

flink savepoint 6eb006988b9ab8ca1feb180c04091d98 hdfs://hadoop102.dev:8020/flink-savepoints -yid application_1629715128130_0031

cancel生成savepoint

flink cancel -s hdfs://hadoop102.dev:8020/flink-savepoints 6eb006988b9ab8ca1feb180c04091d98 yarn-cluster -yid application_1629715128130_0031

带savepoint重启job

/data/software/flink-1.11.1/bin/flink run -m yarn-cluster -ynm DwsProductShopMemberDetail -yjm 1024 -ytm 1024 -s hdfs://hadoop102.dev:8020/flink-savepoints/savepoint-6eb006-26d797d303ff /data/shell/datawarehouse/jar/DwsProductShopMemberDetail.jar

验证:

停任务后先生成了一条订单,在重启任务后订单正常补回

本文标签: Apache Flink savepoint Operations