Failed to send data to Kafka: The producer has been rejected from the broker because it tried to use an old epoch with the transactionalId
flnik-cdc 同步数据到kafka
网上可查到的配置加进去也没用,最终是修改代码
input.addSink(myProducer).name(topicName+"_"+Calendar.getInstance().getTimeInMillis());
让你的taskname唯一即可,否则生成的事务id一样