Apache kafka 如何查找每个主题的保留字节
我们可以使用下面的kafka config命令将保留字节设置为1000000Apache kafka 如何查找每个主题的保留字节,apache-kafka,Apache Kafka,我们可以使用下面的kafka config命令将保留字节设置为1000000 TOPIC_NAME=test kafka-configs --alter --zookeeper localhost:2181 --entity-type topics --entity-name $TOPIC_NAME --add-config retention.bytes=1000000 但是如何以相反的方式查找每个主题的保留字节呢?您可以使用descripe键 ./kafka-configs --zo
TOPIC_NAME=test
kafka-configs --alter --zookeeper localhost:2181 --entity-type topics --entity-name $TOPIC_NAME --add-config retention.bytes=1000000
但是如何以相反的方式查找每个主题的保留字节呢?您可以使用descripe键
./kafka-configs --zookeeper localhost:2181 --describe --entity-type topics --entity-name test
将返回更改后的属性,否则它们是代理的默认属性