Myasuka commented on code in PR #19616: URL: https://github.com/apache/flink/pull/19616#discussion_r865735307
########## docs/content.zh/docs/ops/state/savepoints.md: ########## @@ -133,13 +150,15 @@ $ bin/flink savepoint :jobId [:targetDirectory] -yid :yarnAppId 这将触发 ID 为 `:jobId` 和 YARN 应用程序 ID `:yarnAppId` 的作业的 Savepoint,并返回创建的 Savepoint 的路径。 -#### 使用 Savepoint 取消作业 +<a name="stopping-a-job-with-savepoint"></a> + +#### 使用 Savepoint 停止作业 ```shell -$ bin/flink cancel -s [:targetDirectory] :jobId +$ bin/flink stop --type [native/canonical] --savepointPath [:targetDirectory] :jobId ``` -这将自动触发 ID 为 `:jobid` 的作业的 Savepoint,并取消该作业。此外,你可以指定一个目标文件系统目录来存储 Savepoint 。该目录需要能被 JobManager(s) 和 TaskManager(s) 访问。 +这将自动触发 ID 为 `:jobid` 的作业的 Savepoint,并停止该作业。此外,你可以指定一个目标文件系统目录来存储 Savepoint 。该目录需要能被 JobManager(s) 和 TaskManager(s) 访问。你也可以传入创建 Savepoint 的类型。如果没有指定,会采用标准格式创建 Savepoint。 Review Comment: ```suggestion 这将自动触发 ID 为 `:jobid` 的作业的 Savepoint,并停止该作业。此外,你可以指定一个目标文件系统目录来存储 Savepoint 。该目录需要能被 JobManager(s) 和 TaskManager(s) 访问。你也可以指定创建 Savepoint 的格式。如果没有指定,会采用标准格式创建 Savepoint。 ``` -- 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]
