How to see the retention for a particular topic in kafka

后端 未结 4 609
星月不相逢
星月不相逢 2020-12-24 01:33

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         


        
4条回答
  •  我在风中等你
    2020-12-24 02:17

    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.

提交回复
热议问题