I want to see the retention period set for a particular topic. Is there any command? I tried with
bin/kafka-topics.sh --zookeeper hostname:2181 --alter --con
Alternative ways:
docker run --rm -it confluentinc/cp-kafka:latest sh -c "kafka-topics --zookeeper 11.22.33.44:5555 --describe --topic topic-name"
Take into account that it would be displayed just params different from default values.
At the example above, the retention.ms is 14 days, when default one is 7 days.