RocMarshal commented on a change in pull request #18655:
URL: https://github.com/apache/flink/pull/18655#discussion_r817288388



##########
File path: docs/content.zh/docs/connectors/table/filesystem.md
##########
@@ -474,36 +493,40 @@ public class AnalysisCommitPolicy implements 
PartitionCommitPolicy {
 
 ```
 
+<a name="sink-parallelism"></a>
+
 ## Sink Parallelism
 
-The parallelism of writing files into external file system (including Hive) 
can be configured by the corresponding table option, which is supported both in 
streaming mode and in batch mode. By default, the parallelism is configured to 
being the same as the parallelism of its last upstream chained operator. When 
the parallelism which is different from the parallelism of the upstream 
parallelism is configured, the operator of writing files and the operator 
compacting files (if used) will apply the parallelism.
+在流模式和批模式下,向外部文件系统(包括 hive)写文件时的 parallelism 可以通过相应的 table 属性指定。默认情况下,该 sink 
parallelism 与上游 chained operator 的 parallelism 一样。当配置了跟上游的 chained operator 
不一样的 parallelism 时,写文件和合并文件的算子(如果开启的话)会使用指定的 sink parallelism。

Review comment:
       ```suggestion
   在流模式和批模式下,向外部文件系统(包括 hive)写文件时的 parallelism 可以通过相应的 table 配置项指定。默认情况下,该 sink 
parallelism 与上游 chained operator 的 parallelism 一样。当配置了跟上游的 chained operator 
不一样的 parallelism 时,写文件和合并文件的算子(如果开启的话)会使用指定的 sink parallelism。
   ```
   ```suggestion
   在流模式和批模式下,向外部文件系统(包括 hive)写文件时的 parallelism 可以通过相应的 table 属性指定。默认情况下,该 sink 
parallelism 与上游 chained operator 的 parallelism 一样。当配置了跟上游的 chained operator 
不一样的 parallelism 时,写文件和合并文件的算子(如果开启的话)会使用指定的 sink parallelism。
   ```

##########
File path: docs/content.zh/docs/connectors/table/filesystem.md
##########
@@ -474,36 +493,40 @@ public class AnalysisCommitPolicy implements 
PartitionCommitPolicy {
 
 ```
 
+<a name="sink-parallelism"></a>
+
 ## Sink Parallelism
 
-The parallelism of writing files into external file system (including Hive) 
can be configured by the corresponding table option, which is supported both in 
streaming mode and in batch mode. By default, the parallelism is configured to 
being the same as the parallelism of its last upstream chained operator. When 
the parallelism which is different from the parallelism of the upstream 
parallelism is configured, the operator of writing files and the operator 
compacting files (if used) will apply the parallelism.
+在流模式和批模式下,向外部文件系统(包括 hive)写文件时的 parallelism 可以通过相应的 table 属性指定。默认情况下,该 sink 
parallelism 与上游 chained operator 的 parallelism 一样。当配置了跟上游的 chained operator 
不一样的 parallelism 时,写文件和合并文件的算子(如果开启的话)会使用指定的 sink parallelism。
 
 
 <table class="table table-bordered">
   <thead>
     <tr>
-        <th class="text-left" style="width: 20%">Key</th>
-        <th class="text-left" style="width: 15%">Default</th>
-        <th class="text-left" style="width: 10%">Type</th>
-        <th class="text-left" style="width: 55%">Description</th>
+        <th class="text-left" style="width: 20%">键</th>
+        <th class="text-left" style="width: 15%">默认值</th>
+        <th class="text-left" style="width: 10%">类型</th>
+        <th class="text-left" style="width: 55%">描述</th>
     </tr>
   </thead>
   <tbody>
     <tr>
         <td><h5>sink.parallelism</h5></td>
-        <td style="word-wrap: break-word;">(none)</td>
+        <td style="word-wrap: break-word;">(无)</td>
         <td>Integer</td>
-        <td>Parallelism of writing files into external file system. The value 
should greater than zero otherwise exception will be thrown.</td>
+        <td> 将文件写入外部文件系统的 parallelism。这个值应该大于0否则抛异常。</td>

Review comment:
       ```suggestion
           <td>将文件写入外部文件系统的 parallelism。这个值应该大于0否则抛异常。</td>
   ```
   ```suggestion
           <td> 将文件写入外部文件系统的 parallelism。这个值应该大于0否则抛异常。</td>
   ```

##########
File path: docs/content.zh/docs/connectors/table/filesystem.md
##########
@@ -474,36 +493,40 @@ public class AnalysisCommitPolicy implements 
PartitionCommitPolicy {
 
 ```
 
+<a name="sink-parallelism"></a>
+
 ## Sink Parallelism
 
-The parallelism of writing files into external file system (including Hive) 
can be configured by the corresponding table option, which is supported both in 
streaming mode and in batch mode. By default, the parallelism is configured to 
being the same as the parallelism of its last upstream chained operator. When 
the parallelism which is different from the parallelism of the upstream 
parallelism is configured, the operator of writing files and the operator 
compacting files (if used) will apply the parallelism.
+在流模式和批模式下,向外部文件系统(包括 hive)写文件时的 parallelism 可以通过相应的 table 属性指定。默认情况下,该 sink 
parallelism 与上游 chained operator 的 parallelism 一样。当配置了跟上游的 chained operator 
不一样的 parallelism 时,写文件和合并文件的算子(如果开启的话)会使用指定的 sink parallelism。
 
 
 <table class="table table-bordered">
   <thead>
     <tr>
-        <th class="text-left" style="width: 20%">Key</th>
-        <th class="text-left" style="width: 15%">Default</th>
-        <th class="text-left" style="width: 10%">Type</th>
-        <th class="text-left" style="width: 55%">Description</th>
+        <th class="text-left" style="width: 20%">键</th>
+        <th class="text-left" style="width: 15%">默认值</th>
+        <th class="text-left" style="width: 10%">类型</th>
+        <th class="text-left" style="width: 55%">描述</th>
     </tr>
   </thead>
   <tbody>
     <tr>
         <td><h5>sink.parallelism</h5></td>
-        <td style="word-wrap: break-word;">(none)</td>
+        <td style="word-wrap: break-word;">(无)</td>
         <td>Integer</td>
-        <td>Parallelism of writing files into external file system. The value 
should greater than zero otherwise exception will be thrown.</td>
+        <td> 将文件写入外部文件系统的 parallelism。这个值应该大于0否则抛异常。</td>
     </tr>
 
   </tbody>
 </table>
 
-**NOTE:** Currently, Configuring sink parallelism is supported if and only if 
the changelog mode of upstream is **INSERT-ONLY**. Otherwise, exception will be 
thrown.
+**注意:** 目前,当且仅当上游的 changelog 模式为 **INSERT-ONLY** 时,才支持配置 sink 
parallelism。否则,程序将会抛出异常。
+
+<a name="full-example"></a>
 
-## Full Example
+## 完整示例
 
-The below examples show how the file system connector can be used to write a 
streaming query to write data from Kafka into a file system and runs a batch 
query to read that data back out.
+以下示例展示了如何使用文件系统连接器编写流式查询语句,将数据从 Kafka 写入文件系统,然后运行批式查询语句将数据读回。

Review comment:
       ```suggestion
   以下示例展示了如何使用文件系统连接器编写流式查询语句,将数据从 Kafka 写入文件系统,然后运行批式查询语句读取数据。
   ```
   ```suggestion
   以下示例展示了如何使用文件系统连接器编写流式查询语句,将数据从 Kafka 写入文件系统,然后运行批式查询语句将数据读回。
   ```




-- 
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]


Reply via email to