在使用flink向kafka寫入數據報錯:Caused by: 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).
這是因為事務超時值超過了Kafka代理允許的最大值。具體來說,配置的transaction.timeout.ms
超過了代理的transaction.max.timeout.ms
配置
解決
在使用EXACTLY_ONCE的時候需要增大transaction.max.timeout.ms的值
修改參數
改完之后再重新跑就可以跑通了