当前位置:   article > 正文

springkafka集成后给kafka集群发送失败(cluster authorization failed)_cluster authorization failed.

cluster authorization failed.

1、kafka集群使用的是SASL/SCRAM-SHA-256认证

sasl-mechanism: SCRAM-SHA-256
security-protocol: SASL_PLAINTEXT
sasl-jaas-config: org.apache.kafka.common.security.scram.ScramLoginModule required username="admin" password="Wisebrain@20210621";
  • 1
  • 2
  • 3

解决方案:
https://stackoverflow.com/questions/67148019/kafka-producer-property-enable-idempotence-true-is-causing-error

搜了一下发现是kafka生产者的幂等性配置导致的
将幂等性配置改为false

enable-idempotence: false
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/455887
推荐阅读
相关标签
  

闽ICP备14008679号