hapihu commented on a change in pull request #16295:
URL: https://github.com/apache/flink/pull/16295#discussion_r664675379
##########
File path: docs/content.zh/docs/deployment/cli.md
##########
@@ -226,191 +220,179 @@ Using standalone source with error rate 0.000000 and
sleep delay 1 millis
Job has been submitted with JobID 97b20a0a8ffd5c1d656328b0cd6436a6
```
-See how the command is equal to the [initial run command](#submitting-a-job)
except for the
-`--fromSavepoint` parameter which is used to refer to the state of the
-[previously stopped
job](#stopping-a-job-gracefully-creating-a-final-savepoint). A new JobID is
-generated that can be used to maintain the job.
+请注意,该命令除了使用 `-fromSavepoint`
参数关联[之前停止作业](#stopping-a-job-gracefully-creating-a-final-savepoint)的状态外,其它参数都与[初始
run 命令](#submitting-a-job)相同。该操作会生成一个新的 JobID,用于维护作业的运行。
+
-By default, we try to match the whole savepoint state to the job being
submitted. If you want to
-allow to skip savepoint state that cannot be restored with the new job you can
set the
-`--allowNonRestoredState` flag. You need to allow this if you removed an
operator from your program
-that was part of the program when the savepoint was triggered and you still
want to use the savepoint.
+默认情况下,Flink 尝试将新提交的作业恢复到完整的 savepoint 状态。如果你想忽略不能随新作业恢复的 savepoint 状态,可以设置
`--allowNonRestoredState` 标志。当你删除了程序的某个操作,同时该操作是创建 savepoint
时对应程序的一部分,这种情况下,如果你仍想使用 savepoint,就需要设置此参数。
```bash
$ ./bin/flink run \
--fromSavepoint <savepointPath> \
--allowNonRestoredState ...
```
-This is useful if your program dropped an operator that was part of the
savepoint.
+如果你的程序删除了相应 savepoint 的部分运算操作,使用该选项将很有帮助。
{{< top >}}
-## CLI Actions
+<a name="cli-actions"> </a>
+
+## CLI 操作
+
+以下是 Flink CLI 工具支持操作的概览:
-Here's an overview of actions supported by Flink's CLI tool:
<table class="table table-bordered">
<thead>
<tr>
- <th class="text-left" style="width: 25%">Action</th>
- <th class="text-left" style="width: 50%">Purpose</th>
+ <th class="text-left" style="width: 25%">操作</th>
+ <th class="text-left" style="width: 50%">目的</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="highlighter-rouge">run</code></td>
<td>
- This action executes jobs. It requires at least the jar
containing the job. Flink-
- or job-related arguments can be passed if necessary.
+ 该操作用于执行作业。必须指定包含作业的 jar 包。如有必要,可以传递与 Flink 或作业相关的参数。
Review comment:
OK~
你建议的这种方式读起来比较顺畅,已按照你的建议修改。
--
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]