简体   繁体   English

org.apache.kafka.common.errors.UnknownTopicOrPartitionException:此服务器未托管此主题分区

[英]org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition

Using java I am sending a json object to kafka, initially it worked for me for 2 days, now I am getting the following exception 我使用java将一个json object发送到kafka,最初它为我工作了2天,现在出现以下exception

Exception in thread "main" java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition.
    at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError(FutureRecordMetadata.java:65)
    at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:52)
    at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:25)
    at dummy.DummySyntheticManifestProducer.main(DummySyntheticManifestProducer.java:164)
 Caused by: org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition.

setting the retries property on the producer settings. 在生产者设置中设置retries属性。 also need to set the property max.in.flight.requests.per.connection to 1 还需要将属性max.in.flight.requests.per.connection设置为1

暂无
暂无

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

相关问题 Kafka:此服务器不是该主题分区的领导者 - Kafka: This server is not the leader for that topic-partition 运行Kafka性能流量时出现错误“此服务器不是该主题分区的领导者” - Error “This server is not the leader for that topic-partition” while running Kafka performance traffic org.apache.kafka.common.errors.TimeoutException:60000 毫秒后元数据中不存在主题 - org.apache.kafka.common.errors.TimeoutException: Topic not present in metadata after 60000 ms org.apache.kafka.common.errors.TimeoutException:使用 jaas SASL 配置身份验证获取 Kafka 集群的主题元数据时超时 - org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata for Kafka Cluster using jaas SASL config authentication Apache Kafka - 关于主题/分区的KafkaStream - Apache Kafka - KafkaStream on topic/partition org.apache.kafka.common.errors.SerializationException:未知的魔法字节 - org.apache.kafka.common.errors.SerializationException: Unknown magic byte 为什么 org.apache.kafka.common.serialization 中的 Serializer&lt;&gt; 接口的重写 serialize() 方法中有“主题”参数 - Why is there a "topic" parameter in the overridden serialize() method from Serializer<> interface in org.apache.kafka.common.serialization Azure eventthub Kafka org.apache.kafka.common.errors.TimeoutException 对于一些记录 - Azure eventhub Kafka org.apache.kafka.common.errors.TimeoutException for some of the records Kafka主题与分区主题 - Kafka Topic vs Partition topic Docker swarm:org.apache.kafka.common.errors.TimeoutException:等待节点分配超时 - Docker swarm : org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM