卡夫卡经纪人会继续重启吗?

时间:2019-05-30 10:23:37

标签: kubernetes apache-kafka hyperledger-fabric apache-zookeeper

我在kubernetes上部署了4个kafka经纪人和3个动物园管理员。在4个卡夫卡经纪人中,只有2个在工作,其余2个继续关闭并重新启动,并出现以下错误:

Exiting because log truncation is not allowed for partition byfn-sys-channel-0, current leader's latest offset 2 is less than replica's latest offset 21 (kafka.server.ReplicaFetcherThread)  

下面是kafka的配置

KAFKA_ZOOKEEPER_CONNECT zookeeper0:2181,zookeeper1:2181,zookeeper2:2181
KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE    false
KAFKA_REPLICA_FETCH_MAX_BYTES   103809024
KAFKA_MIN_INSYNC_REPLICAS   1
KAFKA_MESSAGE_MAX_BYTES 103809024
KAFKA_LOG_RETENTION_MS  -1
KAFKA_LOG_DIRS  /var/kafkas/kafka2
KAFKA_DEFAULT_REPLICATION_FACTOR    3
KAFKA_BROKER_ID 2
KAFKA_ADVERTISED_LISTENERS  PLAINTEXT://kafka2:9092

请让我知道我该如何解决?

Kafka halting because log truncation is not allowed for topic error shuttng down kafka nodes

上面的链接显示主题是否不允许日志截断

0 个答案:

没有答案