简体   繁体   English

卡夫卡代理中为卡夫卡流应用程序创建的卡夫卡内部主题的UnknownProducerIdException过多

[英]Too many UnknownProducerIdException in kafka broker for kafka internal topics created for kafka streams application

One of Kafka stream application is generating a lot of Unknown Producer Id errors in the Kafka brokers as well as on the consumer side. Kafka流应用程序之一正在Kafka经纪人以及消费者端生成许多Unknown Producer Id错误。

Stream Configs are as below: 流配置如下:

final Properties streamsConfiguration = new Properties();
    streamsConfiguration.put(StreamsConfig.APPLICATION_ID_CONFIG, appName);
    streamsConfiguration.put(StreamsConfig.CLIENT_ID_CONFIG,appName + "-Client");
    streamsConfiguration.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, this.bootstrapServer);
    streamsConfiguration.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.Long().getClass().getName());
    streamsConfiguration.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, Serdes.String().getClass().getName());
    streamsConfiguration.put(StreamsConfig.PROCESSING_GUARANTEE_CONFIG,StreamsConfig.EXACTLY_ONCE);
    streamsConfiguration.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, offset);
    streamsConfiguration.put(StreamsConfig.STATE_DIR_CONFIG,state_dir);
    streamsConfiguration.put(StreamsConfig.REPLICATION_FACTOR_CONFIG,defaultReplication);
    return streamsConfiguration;

Error on the broker side: 经纪人方面的错误: 在此处输入图片说明

Error on the consumer side: 使用者方面的错误:

在此处输入图片说明

custom configuration for repartition internal topic: prod.Prod-Job-Summary-v0.4-KTABLE-AGGREGATE-STATE-STORE-0000000049-repartition 分区内部主题的定制配置: prod.Prod-Job-Summary-v0.4-KTABLE-AGGREGATE-STATE-STORE-0000000049-repartition 在此处输入图片说明

What can be the reason behind these? 这些背后的原因是什么?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM