yzeng1618 commented on code in PR #10232:
URL: https://github.com/apache/seatunnel/pull/10232#discussion_r2660984864
##########
seatunnel-core/seatunnel-flink-starter/seatunnel-flink-starter-common/src/main/java/org/apache/seatunnel/core/starter/flink/args/FlinkCommandArgs.java:
##########
@@ -53,6 +53,13 @@ public class FlinkCommandArgs extends AbstractCommandArgs {
+ "kubernetes-session, yarn-application,
kubernetes-application]")
private MasterType masterType;
+ /** restore checkpoint path */
+ @Parameter(
+ names = {"-s", "--fromCheckpoint"},
+ description =
+ "Path to a checkpoint to restore the job from (for
example, flink run -s
hdfs:///flink/checkpoints/3c298a925d9a2a7837bbf5a8e4966b4f/chk-7902).")
Review Comment:
Path to a checkpoint/savepoint to restore the job from , add savepoint
example
##########
docs/zh/other-engine/flink.md:
##########
@@ -78,6 +78,14 @@ sink{
}
```
+### 如何从检查点恢复任务
+
+当你需要从检查点恢复任务时,只需启动任务时指定相关的检查点目录即可。
+
+```
+bin/start-seatunnel-flink-13-connector-v2.sh --target local --fromCheckpoint
hdfs:///flink/checkpoints/3c298a925d9a2a7837bbf5a8e4966b4f/chk-7902
--deploy-mode run --config ./config/example.conf
+```
+
Review Comment:
In Flink, the -s option works for both savepoints and checkpoints. You can
add a description in the documentation to indicate that recovery from both
savepoints and checkpoints is supported.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]