Darin Amos
09/05/2024, 1:01 PMDarin Amos
09/05/2024, 1:11 PMkey_0
• key_2
• key_5
This will at least create some distribution to not overload a single parallel operator. But I’d rather use a non-keyed stream because I think it’ll be more efficient.D. Draco O'Brien
09/05/2024, 5:29 PM.kubectl describe deployment <flink-operator-deployment-name>
D. Draco O'Brien
09/05/2024, 5:30 PMD. Draco O'Brien
09/05/2024, 5:31 PMkubectl logs <operator-pod>
Darin Amos
09/05/2024, 5:31 PMIn case of non-keyed streams, your original stream will not be split into multiple logical streams and all the windowing logic will be performed by a single task, i.e. with parallelism of 1.
D. Draco O'Brien
09/05/2024, 5:32 PMD. Draco O'Brien
09/05/2024, 5:33 PMD. Draco O'Brien
09/05/2024, 5:52 PMDarin Amos
09/05/2024, 6:04 PMException in thread “main” java.lang.IllegalArgumentException: The parallelism of non parallel operator must be 1.
at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:138)
at org.apache.flink.api.common.operators.util.OperatorValidationUtils.validateParallelism(OperatorValidationUtils.java:35)
at org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator.setParallelism(SingleOutputStreamOperator.java:139)
at org.apache.flink.streaming.api.scala.DataStream.setParallelism(DataStream.scala:120)
Darin Amos
09/05/2024, 6:06 PMD. Draco O'Brien
09/05/2024, 6:08 PMD. Draco O'Brien
09/05/2024, 6:08 PMD. Draco O'Brien
09/05/2024, 6:09 PMDarin Amos
09/05/2024, 6:10 PMD. Draco O'Brien
09/05/2024, 6:10 PMD. Draco O'Brien
09/05/2024, 6:11 PMD. Draco O'Brien
09/05/2024, 6:12 PMD. Draco O'Brien
09/05/2024, 6:13 PMD. Draco O'Brien
09/05/2024, 6:14 PMD. Draco O'Brien
09/05/2024, 6:14 PMDarin Amos
09/05/2024, 6:16 PMD. Draco O'Brien
09/05/2024, 6:16 PMD. Draco O'Brien
09/05/2024, 6:17 PMD. Draco O'Brien
09/05/2024, 6:17 PMDarin Amos
09/05/2024, 6:26 PMD. Draco O'Brien
09/05/2024, 6:29 PMDarin Amos
09/05/2024, 6:35 PM