Support Questions
Find answers, ask questions, and share your expertise

kafka + why details about the retentions bytes are not displayed from kafka –describe

Highlighted

kafka + why details about the retentions bytes are not displayed from kafka –describe

We are running Kafka cluster with 3 nodes , `Kafka 0.11.0`.

We have set a global as well as a per-topic *retention in bytes*,

 

See relevant configs below:

 

server.properties

log.retention.hours=48
log.retention.bytes=6400000000
log.segment.bytes=10485760
log.retention.check.interval.ms=300000
zookeeper.connection.timeout.ms=6000
confluent.support.metrics.enable=true
group.initial.rebalance.delay.ms=0
confluent.support.customer.id=anonymous
delete.topic.enable=true
auto.create.topics.enable=false
log.flush.interval.ms=10000
zookeeper.session.timeout.ms=2000
log.flush.scheduler.interval.ms=2000
log.flush.interval.messages=20000
queued.max.requests=1000
producer.purgatory.purge.interval.requests=100
num.replica.fetchers=1
min.insync.replicas=1
unclean.leader.election.enable=true
inter.broker.protocol.version=1.0
log.message.format.version=1.0

 

the strange thing is when we run `kafka –describe` , in order to verify the `retention.bytes` values from output then we get the following

we can see that  Configs: get null

bin/kafka-topics.sh --zookeeper zk-01:2181/kafka --describe --topic stg_logtopic
Topic:stg_logtopic PartitionCount:12 ReplicationFactor:3 Configs:
Topic: stg_logtopic Partition: 0 Leader: 4 Replicas: 4,5,6 Isr: 4,5,6
Topic: stg_logtopic Partition: 1 Leader: 5 Replicas: 5,6,1 Isr: 5,1,6
...


While expected output should be something like this

bin/kafka-topics.sh --zookeeper zk-01:2181/kafka --describe --topic stg_logtopic
Topic:stg_logtopic PartitionCount:12 ReplicationFactor:3 Configs:retention.bytes=6400000000
Topic: stg_logtopic Partition: 0 Leader: 4 Replicas: 4,5,6 Isr: 4,5,6
Topic: stg_logtopic Partition: 1 Leader: 5 Replicas: 5,6,1 Isr: 5,1,6


Why the details about `retention.bytes=6400000000` , are not displayed from `kafka –describe` ?


Thanks in advance,

Michael-Bronson
Don't have an account?