MrWhiteSike commented on a change in pull request #18718:
URL: https://github.com/apache/flink/pull/18718#discussion_r805509860



##########
File path: docs/content.zh/docs/connectors/datastream/filesystem.md
##########
@@ -28,60 +28,54 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-# FileSystem
+# 文件系统
+<a name="filesystem"></a>
 
-This connector provides a unified Source and Sink for `BATCH` and `STREAMING` 
that reads or writes (partitioned) files to file systems
-supported by the [Flink `FileSystem` abstraction]({{< ref 
"docs/deployment/filesystems/overview" >}}). This filesystem
-connector provides the same guarantees for both `BATCH` and `STREAMING` and is 
designed to provide exactly-once semantics for `STREAMING` execution.
+连接器提供了 `BATCH` 模式和 `STREAMING` 模式统一的 Source 和 Sink。[Flink `FileSystem` 
abstraction]({{< ref "docs/deployment/filesystems/overview" >}}) 
支持连接器对文件系统进行(分区)文件读写。文件系统连接器为 `BATCH` 和 `STREAMING` 模式提供了相同的保证,而且对 `STREAMING` 
模式执行提供了精确一次(exactly-once)语义保证。
 
-The connector supports reading and writing a set of files from any 
(distributed) file system (e.g. POSIX, S3, HDFS)
-with a [format]({{< ref "docs/connectors/datastream/formats/overview" >}}) 
(e.g., Avro, CSV, Parquet),
-and produces a stream or records.
+连接器支持对任意(分布式的)文件系统(例如,POSIX、 S3、 HDFS)以某种数据格式 [format]({{< ref 
"docs/connectors/datastream/formats/overview" >}}) (例如,Avro、 CSV、 Parquet) 
对文件进行写入,或者读取后生成数据流或一组记录。
 
 ## File Source
 
-The `File Source` is based on the [Source API]({{< ref 
"docs/dev/datastream/sources" >}}#the-data-source-api),
-a unified data source that reads files - both in batch and in streaming mode.
-It is divided into the following two parts: `SplitEnumerator` and 
`SourceReader`.
+`File Source` 是基于 [Source API]({{< ref "docs/dev/datastream/sources" 
>}}#the-data-source-api) 同时支持批模式和流模式文件读取的统一数据源。
+`File Source` 分为以下两个部分:`SplitEnumerator` 和 `SourceReader`。
 
-* `SplitEnumerator` is responsible for discovering and identifying the files 
to read and assigns them to the `SourceReader`.
-* `SourceReader` requests the files it needs to process and reads the file 
from the filesystem.
+* `SplitEnumerator` 负责发现和识别需要读取的文件,并将这些文件分配给 `SourceReader` 进行读取。
+* `SourceReader` 请求需要处理的文件,并从文件系统中读取该文件。
 
-You will need to combine the File Source with a [format]({{< ref 
"docs/connectors/datastream/formats/overview" >}}), which allows you to
-parse CSV, decode AVRO, or read Parquet columnar files.
+你可能需要指定某种 [format]({{< ref "docs/connectors/datastream/formats/overview" >}}) 
与 `File Source` 联合进行解析 CSV、解码AVRO、或者读取 Parquet 列式文件。
 

Review comment:
       OK, I will add the label.




-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to