Louis Cameron Booth
07/26/2024, 2:25 PM4.3.0-1.19
. The examples in the public repo in the test folder appear to be for 1.18, and when I try to write the same code locally using 1.19 I get errors when attempting to sink to my DataStream: Cannot resolve method 'sinkTo(KinesisStreamsSink<String>)'
with suggestions to cast arguments to get it working with the sinkTo methods.D. Draco O'Brien
07/27/2024, 2:08 AMD. Draco O'Brien
07/27/2024, 2:08 AMD. Draco O'Brien
07/27/2024, 2:13 AM<dependencies>
<!-- Flink Core Dependency -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_2.12</artifactId>
<version>1.19.1</version> <!-- Ensure this matches Flink 1.19 -->
</dependency>
<!-- Flink AWS Connector -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-aws-kinesis-streams</artifactId>
<version>4.3.0-1.19</version>
</dependency>
<!-- ensure other Flink-related dependencies are on version 1.19 -->
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-common</artifactId>
<version>1.19.1</version>
</dependency>
<!-- and so on for other Flink dependencies -->
<!-- AWS SDK dependency, choose a compatible version -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>kinesis</artifactId>
<version>2.26.24</version> <!-- Or the version compatible with your Flink connector -->
</dependency>
<!--oOther dependencies like testcontainers, equalsverifier, etc., adjust versions as needed -->
</dependencies>
D. Draco O'Brien
07/27/2024, 2:14 AMD. Draco O'Brien
07/27/2024, 2:14 AMLouis Cameron Booth
07/29/2024, 11:28 AMfromGen.sinkTo((Sink<String>) kdsSink);
Louis Cameron Booth
07/29/2024, 12:10 PM<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-base</artifactId>
<version>1.19.1</version>
</dependency>
D. Draco O'Brien
07/29/2024, 12:20 PMLouis Cameron Booth
07/29/2024, 1:18 PMreturn type of function ' Kinesis Record Stream' could not be determined automatically
. I believe this is coming from my DeserializationSchema where I have a getProducedType()
method. The issue is I have a type which is a List<T>. Currently I just have getProducedType return :
return TypeInformation.of(new TypeHint<>() {});
However that doesn’t seem to work now with the new Flink version.D. Draco O'Brien
07/29/2024, 2:59 PMreturn TypeInformation.of(new TypeHint<>() {});
D. Draco O'Brien
07/29/2024, 2:59 PMD. Draco O'Brien
07/29/2024, 2:59 PMreturn new ListTypeInfo<>(TypeInformation.of(MyRecord.class));
D. Draco O'Brien
07/29/2024, 2:59 PMD. Draco O'Brien
07/29/2024, 3:00 PMLouis Cameron Booth
07/29/2024, 3:00 PMLouis Cameron Booth
07/29/2024, 3:00 PMD. Draco O'Brien
07/29/2024, 3:01 PMD. Draco O'Brien
07/29/2024, 3:01 PMD. Draco O'Brien
07/29/2024, 3:02 PMD. Draco O'Brien
07/29/2024, 3:03 PMLouis Cameron Booth
07/30/2024, 2:01 PM