[
https://issues.apache.org/jira/browse/BEAM-7128?focusedWorklogId=230717&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-230717
]
ASF GitHub Bot logged work on BEAM-7128:
----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Apr/19 14:25
Start Date: 22/Apr/19 14:25
Worklog Time Spent: 10m
Work Description: iemejia commented on issue #8372: [BEAM-7128]
Parallelism is unavailable when applying ReplacementTransforms
URL: https://github.com/apache/beam/pull/8372#issuecomment-485432085
Run Portable_Python PreCommit
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 230717)
Time Spent: 20m (was: 10m)
> When unset parallelism is unavailable when applying ReplacementTransforms
> -------------------------------------------------------------------------
>
> Key: BEAM-7128
> URL: https://issues.apache.org/jira/browse/BEAM-7128
> Project: Beam
> Issue Type: Bug
> Components: runner-flink
> Reporter: Maximilian Michels
> Assignee: Maximilian Michels
> Priority: Minor
> Fix For: 2.13.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In streaming mode, the Flink Runner applies a ReplacementTransform to set a
> sharding strategy for Writes. This requires the parallelism of the pipeline
> to be available up front. The replacement transforms are applied before the
> final parallelism has been determined which leads to an error if the
> parallelism has not been manually set:
>
> {noformat}
> Exception in thread "main" java.lang.IllegalArgumentException: Parallelism of
> a job should be greater than 0. Currently set: {} [-1]
> at
> org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:161)
> at
> org.apache.beam.runners.flink.FlinkStreamingPipelineTranslator$StreamingShardedWriteFactory.getReplacementTransform(FlinkStreamingPipelineTranslator.java:197)
> at org.apache.beam.sdk.Pipeline.applyReplacement(Pipeline.java:554)
> at org.apache.beam.sdk.Pipeline.replace(Pipeline.java:290)
> at org.apache.beam.sdk.Pipeline.replaceAll(Pipeline.java:208)
> at
> org.apache.beam.runners.flink.FlinkPipelineExecutionEnvironment.translate(FlinkPipelineExecutionEnvironment.java:93)
> at org.apache.beam.runners.flink.FlinkRunner.run(FlinkRunner.java:108)
> at org.apache.beam.sdk.Pipeline.run(Pipeline.java:313)
> at org.apache.beam.sdk.Pipeline.run(Pipeline.java:299)
> at com.maximilianmichels.WordCount.main(WordCount.java:64)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)