在编写Flink精准一次写入Kafka的时候需要如下问题
org.apache.kafka.common.KafkaException: Unexpected error in InitProducerIdResponse; The transaction timeout is larger than the maximum value allowed by the broker (as configured by transaction.max.timeout.ms).
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.util.concurrent.ForkJoinTask.getThrowableExcepti
在使用Flink精准一次写入Kafka时遇到错误:'The transaction timeout is larger than the maximum value allowed by the broker'。原因是Kafka broker的transaction.max.timeout.ms配置限制了交易超时时间,而默认的producer配置transaction.timeout.ms设为1小时,超过了这个限制。解决方案是调整producer配置,增加transaction.timeout.ms的值以匹配broker的允许范围。
订阅专栏 解锁全文
338

被折叠的 条评论
为什么被折叠?



