You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/09/16 08:25:07 UTC

[GitHub] [flink] xintongsong commented on a change in pull request #9677: [FLINK-13979] [docs-zh] Translate new streamfilesink docs to chinese

xintongsong commented on a change in pull request #9677: [FLINK-13979] [docs-zh] Translate new streamfilesink docs to chinese
URL: https://github.com/apache/flink/pull/9677#discussion_r324540876
 
 

 ##########
 File path: docs/dev/connectors/streamfile_sink.zh.md
 ##########
 @@ -28,80 +28,69 @@ under the License.
 
 这个连接器提供了一个 Sink 来将分区文件写入到支持 [Flink `FileSystem`]({{ site.baseurl}}/zh/ops/filesystems/index.html) 接口的文件系统中。
 
-In order to handle unbounded data streams, the streaming file sink writes incoming data
-into buckets. The bucketing behaviour is fully configurable with a default time-based
-bucketing where we start writing a new bucket every hour and thus get files that correspond to
-records received during certain time intervals from the stream.
+为了处理无界的流数据,Streaming File Sink 会将数据写入到桶中。如何分桶是可以配置的,默认策略是基于时间的分桶,这种策略每个小时创建并写入一个新的桶,从而得到流数据在特定时间间隔内接收记录所对应的文件。
 
-The bucket directories themselves contain several part files with the actual output data, with at least
-one for each subtask of the sink that has received data for the bucket. Additional part files will be created according to the configurable
-rolling policy. The default policy rolls files based on size, a timeout that specifies the maximum duration for which a file can be open, and a maximum inactivity timeout after which the file is closed.
+对于每一个接收桶数据的 Sink Subtask ,在桶中至少会存在一个正在接收数据的部分文件(part file)。其余的部分文件(part file)将根据滚动策略创建,滚动策略是可以配置的。默认的策略是根据文件大小和超时时间来滚动文件。超时时间指打开文件的最长持续时间,以及文件关闭后的最长非活动时间。
 
 Review comment:
   - The bucket directories themselves contain several part files with the actual output data 这句话漏掉了
   - ”正在接受数据的部分文件(part file)“,这句话原本不应该包含”正在“的含义吧
   - ”Additional part files“,这个指的应该是”额外的“而非”其余的“
   - ”文件关闭后的最长非活动时间“应该是文件关闭前吧

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services