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 2020/08/05 12:08:33 UTC

[GitHub] [flink] klion26 commented on a change in pull request #13056: [FLINK-18798][docs-zh] Translate "Debugging Windows & Event Time" page of "Debugging & Monitoring" into Chinese

klion26 commented on a change in pull request #13056:
URL: https://github.com/apache/flink/pull/13056#discussion_r465674175



##########
File path: docs/monitoring/debugging_event_time.zh.md
##########
@@ -25,33 +25,28 @@ under the License.
 * ToC
 {:toc}
 
-## Monitoring Current Event Time
+<a name="monitoring-current-event-time"></a>
 
-Flink's [event time]({{ site.baseurl }}/dev/event_time.html) and watermark support are powerful features for handling
-out-of-order events. However, it's harder to understand what exactly is going on because the progress of time
-is tracked within the system.
+## 监控当前事件时间(Event Time)
 
-Low watermarks of each task can be accessed through Flink web interface or [metrics system]({{ site.baseurl }}/monitoring/metrics.html).
+Flink 的[事件时间]({% link dev/event_time.zh.md %})和 watermark 支持对于处理乱序事件是十分强大的特性。然而,由于是系统内部跟踪了时间进度,所以很难理解究竟发生了什么。

Review comment:
       `由于是系统内部跟踪时间进度,所以很难了解究竟正在发生了什么` 这样会好一些吗?

##########
File path: docs/monitoring/debugging_event_time.zh.md
##########
@@ -25,33 +25,28 @@ under the License.
 * ToC
 {:toc}
 
-## Monitoring Current Event Time
+<a name="monitoring-current-event-time"></a>
 
-Flink's [event time]({{ site.baseurl }}/dev/event_time.html) and watermark support are powerful features for handling
-out-of-order events. However, it's harder to understand what exactly is going on because the progress of time
-is tracked within the system.
+## 监控当前事件时间(Event Time)
 
-Low watermarks of each task can be accessed through Flink web interface or [metrics system]({{ site.baseurl }}/monitoring/metrics.html).
+Flink 的[事件时间]({% link dev/event_time.zh.md %})和 watermark 支持对于处理乱序事件是十分强大的特性。然而,由于是系统内部跟踪了时间进度,所以很难理解究竟发生了什么。
 
-Each Task in Flink exposes a metric called `currentInputWatermark` that represents the lowest watermark received
-by this task. This long value represents the "current event time".
-The value is calculated by taking the minimum of all watermarks received by upstream operators. This means that 
-the event time tracked with watermarks is always dominated by the furthest-behind source.
+可以通过 Flink web 界面或[指标系统]({% link monitoring/metrics.zh.md %})访问 task 的 low watermarks。
 
-The low watermark metric is accessible **using the web interface**, by choosing a task in the metric tab,
-and selecting the `<taskNr>.currentInputWatermark` metric. In the new box you'll now be able to see 
-the current low watermark of the task.
+Flink 中的 task 通过调用 `currentInputWatermark` 方法公开一个指标,该指标表示当前 task 所接收到的 the lowest watermark。这个 long 类型值表示“当前事件时间”。该值通过获取上游算子收到的所有 watermarks 的最小值来计算。这意味着用 watermarks 跟踪的事件时间总是由最落后的 source 控制。

Review comment:
       这里我不完全确定 ”公开一个指标“ 是否有习惯这么描述,因为我听到更多的是 ”暴露一个指标“ 。如果确定这个是一个习惯描述的话,也可以

##########
File path: docs/monitoring/debugging_event_time.zh.md
##########
@@ -25,33 +25,28 @@ under the License.
 * ToC
 {:toc}
 
-## Monitoring Current Event Time
+<a name="monitoring-current-event-time"></a>
 
-Flink's [event time]({{ site.baseurl }}/dev/event_time.html) and watermark support are powerful features for handling
-out-of-order events. However, it's harder to understand what exactly is going on because the progress of time
-is tracked within the system.
+## 监控当前事件时间(Event Time)
 
-Low watermarks of each task can be accessed through Flink web interface or [metrics system]({{ site.baseurl }}/monitoring/metrics.html).
+Flink 的[事件时间]({% link dev/event_time.zh.md %})和 watermark 支持对于处理乱序事件是十分强大的特性。然而,由于是系统内部跟踪了时间进度,所以很难理解究竟发生了什么。
 
-Each Task in Flink exposes a metric called `currentInputWatermark` that represents the lowest watermark received
-by this task. This long value represents the "current event time".
-The value is calculated by taking the minimum of all watermarks received by upstream operators. This means that 
-the event time tracked with watermarks is always dominated by the furthest-behind source.
+可以通过 Flink web 界面或[指标系统]({% link monitoring/metrics.zh.md %})访问 task 的 low watermarks。
 
-The low watermark metric is accessible **using the web interface**, by choosing a task in the metric tab,
-and selecting the `<taskNr>.currentInputWatermark` metric. In the new box you'll now be able to see 
-the current low watermark of the task.
+Flink 中的 task 通过调用 `currentInputWatermark` 方法公开一个指标,该指标表示当前 task 所接收到的 the lowest watermark。这个 long 类型值表示“当前事件时间”。该值通过获取上游算子收到的所有 watermarks 的最小值来计算。这意味着用 watermarks 跟踪的事件时间总是由最落后的 source 控制。
 
-Another way of getting the metric is using one of the **metric reporters**, as described in the documentation
-for the [metrics system]({{ site.baseurl }}/monitoring/metrics.html).
-For local setups, we recommend using the JMX metric reporter and a tool like [VisualVM](https://visualvm.github.io/).
+**使用 web 界面**可以访问 low watermark 指标,在指标选项卡中选择一个 task,然后选择 ```<taskNr>.currentInputWatermark``` 指标。在新的显示框中,你可以看到此 task 的当前 low watermark。
 
+获取指标的另一种方式是使用**指标报告器**之一,如[指标系统]({% link monitoring/metrics.zh.md %})文档所述。对于本地集群设置,我们推荐使用 JMX 指标报告器和类似于 [VisualVM](https://visualvm.github.io/) 的工具。
 
 
 
-## Handling Event Time Stragglers
 
-  - Approach 1: Watermark stays late (indicated completeness), windows fire early
-  - Approach 2: Watermark heuristic with maximum lateness, windows accept late data
+<a name="handling-event-time-stragglers"></a>
+
+## 处理散乱的事件时间
+
+  - 方式 1:Watermark 延迟(表明完整性),窗口提前触发

Review comment:
       感觉这句话读起来有点不太完整的样子 -- 不太明白这句话的意思,不过我暂时没有一个很好的翻译。




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