简体   繁体   English

当 PROCESSING_GUARANTEE_CONFIG 设置为 EXACTLY_ONCE 时,Kafka 无法重新平衡

[英]Kafka Failed to rebalance when PROCESSING_GUARANTEE_CONFIG set to EXACTLY_ONCE

I have a Kafka stream application that works fine.我有一个工作正常的 Kafka 流应用程序。 However when I add the property:但是,当我添加属性时:

properties.put(StreamsConfig.PROCESSING_GUARANTEE_CONFIG, StreamsConfig.EXACTLY_ONCE);

Then I get the following error:然后我收到以下错误:

Exception in thread "trade-state-decider-a271c9f6-d9d8-488c-b91c-57cdfaf54894-StreamThread-1" org.apache.kafka.streams.errors.StreamsException: stream-thread [trade-state-decider-a271c9f6-d9d8-488c-b91c-57cdfaf54894-StreamThread-1] Failed to rebalance.


Caused by: org.apache.kafka.common.errors.TransactionalIdAuthorizationException: Transactional Id authorization failed.

Anyone has any idea about what could course this?任何人都知道什么可以课程?

As the error indicates, your application does not have permissions to use transactions.如错误所示,您的应用程序无权使用事务。 Using transactions requires special permissions that you can enable via ACLs.使用事务需要您可以通过 ACL 启用的特殊权限。

See the docs for more details on what permission you need to grant: https://docs.confluent.io/current/kafka/authorization.html#enabling-authorization-for-idempotent-and-transactional-apis有关您需要授予的权限的更多详细信息,请参阅文档: https : //docs.confluent.io/current/kafka/authorization.html#enabling-authorization-for-idempotent-and-transactional-apis

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Kafka Streams 的 processing.guarantee 设置为 EXACTLY_ONCE 问题 - Kafka Streams with processing.guarantee set up to EXACTLY_ONCE issue Flink Kafka EXACTLY_ONCE 导致 KafkaException ByteArraySerializer 不是 Serializer 的实例 - Flink Kafka EXACTLY_ONCE causing KafkaException ByteArraySerializer is not an instance of Serializer 在 Kafka 中通过重放进行精确一次处理 - Exactly-once processing in Kafka with replay Kafka的Spring Boot只需一次处理 - Spring boot with Kafka with Exactly Once Processing 我们可以使用 Spring kafka 进行一次性处理吗? - Can we have exactly-once-processing with Spring kafka? 卡夫卡消费者意外重新平衡 - Kafka consumers rebalance unexpectedly Exactly once 生产者和消费 - Apache Kafka 和 SpringBoot - Exactly once Producer and Consumption - Apache Kafka and SpringBoot 卡夫卡老消费者再平衡问题 - Kafka old consumer rebalance issue 如何使用 Apache Kafka 实现“Exactly once” kafka 消费者? - How to implement “Exactly once” kafka consumer using Apache Kafka? 线程“StreamThread-1”中的异常org.apache.kafka.streams.errors.StreamsException:无法重新平衡 - Exception in thread “StreamThread-1” org.apache.kafka.streams.errors.StreamsException: Failed to rebalance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM