wuchong commented on a change in pull request #8897:
[FLINK-12943][docs]Translate HDFS Connector page into Chinese
URL: https://github.com/apache/flink/pull/8897#discussion_r298799441
##########
File path: docs/dev/connectors/filesystem_sink.zh.md
##########
@@ -65,40 +59,34 @@ input.addSink(new BucketingSink[String]("/base/path"))
</div>
</div>
-The only required parameter is the base path where the buckets will be
-stored. The sink can be further configured by specifying a custom bucketer,
writer and batch size.
-
-By default the bucketing sink will split by the current system time when
elements arrive and will
-use the datetime pattern `"yyyy-MM-dd--HH"` to name the buckets. This pattern
is passed to
-`DateTimeFormatter` with the current system time and JVM's default timezone to
form a bucket path.
-Users can also specify a timezone for the bucketer to format bucket path. A
new bucket will be created
-whenever a new date is encountered. For example, if you have a pattern that
contains minutes as the
-finest granularity you will get a new bucket every minute. Each bucket is
itself a directory that
-contains several part files: each parallel instance of the sink will create
its own part file and
-when part files get too big the sink will also create a new part file next to
the others. When a
-bucket becomes inactive, the open part file will be flushed and closed. A
bucket is regarded as
-inactive when it hasn't been written to recently. By default, the sink checks
for inactive buckets
-every minute, and closes any buckets which haven't been written to for over a
minute. This
-behaviour can be configured with `setInactiveBucketCheckInterval()` and
-`setInactiveBucketThreshold()` on a `BucketingSink`.
-
-You can also specify a custom bucketer by using `setBucketer()` on a
`BucketingSink`. If desired,
-the bucketer can use a property of the element or tuple to determine the
bucket directory.
+初始化时只需要一个参数,这个参数表示分桶文件存储的路径。分桶 sink 可以通过指定自定义的 bucketer、 writer 和 batch 值进一步配置。
+
+默认情况下,当数据到来时,分桶 sink 会按照系统时间对数据进行切分,并以 `"yyyy-MM-dd--HH"` 的时间格式给每个桶命名。然后
+`DateTimeFormatter` 按照 `"yyyy-MM-dd--HH"` 和 JVM
的默认时区格式换当前时间生成分桶的路径。用户可以自定义时区来生成
Review comment:
```suggestion
`DateTimeFormatter` 按照这个时间格式将当前系统时间以 JVM 默认时区转换成分桶的路径。用户可以自定义时区来生成
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services