我尝试使用flink-connector-kinesis-4.1.0 jar[https://mvnrepository.com/artifact/org.apache.flink/flink-connector-kinesis/4.1.0-1.17]与flink 1.17集成kinesis流连接器,但我在flink作业启动时遇到以下异常。看起来下面的JIRA修复没有添加到最新的flink-connector-kinesis-4.1.0-1.17 jar中。我通过反编译jar来确认这一点
https://issues.apache.org/jira/browse/FLINK-24943
提交修复:https://github.com/apache/flink/pull/20257/commits/610c2420b09f7fd05039ccdb9d8a810bb5d7daf7
你能建议一下这里的替代方案吗?
异常日志
java.lang.UnsupportedOperationException: Generic types have been disabled in the ExecutionConfig and type org.apache.flink.streaming.connectors.kinesis.model.SequenceNumber is treated as a generic type.
at org.apache.flink.api.java.typeutils.GenericTypeInfo.createSerializer(GenericTypeInfo.java:87)
at org.apache.flink.api.java.typeutils.TupleTypeInfo.createSerializer(TupleTypeInfo.java:104)
at org.apache.flink.api.java.typeutils.TupleTypeInfo.createSerializer(TupleTypeInfo.java:49)
at org.apache.flink.api.java.typeutils.ListTypeInfo.createSerializer(ListTypeInfo.java:99)
at org.apache.flink.api.common.state.StateDescriptor.initializeSerializerUnlessSet(StateDescriptor.java:311)
1条答案
按热度按时间esbemjvw1#
该票证的状态(在回复时)是它仍然未解决。这意味着这是一个已知的错误,但目前还没有修复程序。目前唯一的解决办法是不升级。