[2017-05-24 17:49:14,043] ERROR [ReplicaFetcherThread-0-177], Error for partition [__consumer_offsets,20] to broker 177:org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition. (kafka.server.ReplicaFetcherThread)
[2017-05-24 17:49:14,043] ERROR [ReplicaFetcherThread-0-177], Error for partition [__consumer_offsets,5] to broker 177:org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition. (kafka.server.ReplicaFetcherThread)
[2017-05-24 17:49:14,043] ERROR [ReplicaFetcherThread-0-177], Error for partition [__consumer_offsets,35] to broker 177:org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition. (kafka.server.ReplicaFetcherThread)
[2017-05-24 17:49:14,043] ERROR [ReplicaFetcherThread-0-177], Error for partition [__consumer_offsets,2] to broker 177:org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition. (kafka.server.ReplicaFetcherThread)
昵称
0 声望
这家伙太懒,什么都没留下
没找到对应的
topic
或分区
,意思就是你的topic或者分区不存在。你好,我是禁用自动创建Topic的,我在kafka加了一些ACL的一些配置:
auto.create.topics.enable=false allow.everyone.if.no.acl.found=false authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
我有一个
TOPIC sms
,我想在集群以外的一台机器B上监测sms的offset和lag值我在集群上给B机器开通了DESCRIBE的权限,然后在B机器上利用以下脚本去获取offset值
值都能正常获取,但是运行脚本以后,集群好像就自动创建了
__consumer_offsets
topic,然后log就不断打印错误。集群是正常工作的。
kafka版本9.0之后,kafka的offset默认存储在了kafka中,就是你看到的
__consumer_offsets
,所以必须要创建,不然你会一直报错的。你的答案