[
https://issues.apache.org/jira/browse/BEAM-6034?focusedWorklogId=165659&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-165659
]
ASF GitHub Bot logged work on BEAM-6034:
----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Nov/18 21:52
Start Date: 13/Nov/18 21:52
Worklog Time Spent: 10m
Work Description: tweise closed pull request #7004: [BEAM-6034] Flink
auto watermark interval pipeline option
URL: https://github.com/apache/beam/pull/7004
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkExecutionEnvironments.java
b/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkExecutionEnvironments.java
index ddacf3f1ed1..8141e6c148b 100644
---
a/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkExecutionEnvironments.java
+++
b/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkExecutionEnvironments.java
@@ -214,6 +214,10 @@ static StreamExecutionEnvironment
createStreamExecutionEnvironment(
applyLatencyTrackingInterval(flinkStreamEnv.getConfig(), options);
+ if (options.getAutoWatermarkInterval() != null) {
+
flinkStreamEnv.getConfig().setAutoWatermarkInterval(options.getAutoWatermarkInterval());
+ }
+
// State backend
final StateBackend stateBackend = options.getStateBackend();
if (stateBackend != null) {
diff --git
a/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkPipelineOptions.java
b/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkPipelineOptions.java
index 234b457530a..5c55e78218f 100644
---
a/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkPipelineOptions.java
+++
b/runners/flink/src/main/java/org/apache/beam/runners/flink/FlinkPipelineOptions.java
@@ -190,6 +190,11 @@
void setLatencyTrackingInterval(Long interval);
+ @Description("The interval in milliseconds for automatic watermark
emission.")
+ Long getAutoWatermarkInterval();
+
+ void setAutoWatermarkInterval(Long interval);
+
@Description(
"Flink mode for data exchange of batch pipelines. "
+ "Reference {@link org.apache.flink.api.common.ExecutionMode}. "
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 165659)
Time Spent: 50m (was: 40m)
> Add option to set the Flink auto watermarking interval
> ------------------------------------------------------
>
> Key: BEAM-6034
> URL: https://issues.apache.org/jira/browse/BEAM-6034
> Project: Beam
> Issue Type: Improvement
> Components: runner-flink
> Reporter: Thomas Weise
> Assignee: Thomas Weise
> Priority: Minor
> Labels: portability-flink
> Time Spent: 50m
> Remaining Estimate: 0h
>
> The user should be able to control the auto watermarking interval that is
> configurable in Flink.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)