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
See config 'log.retention.hours' in Kafka Doc:
The number of hours to keep a log file before deleting it (in hours), tertiary to log.retention.ms property
Default value is 168 hours which is 7 days.