Hi, I want to change the retention time for a specific topic with the
following command:

$ bin/kafka-topics.sh --zookeeper zk_address --alter --topic
test-topic --config retention.ms=86400000

Is that correct? Do I have to restart the brokers?
I read the source code and thought the configuration values about retention
time in LogManager are static:
https://github.com/apache/kafka/blob/0.10.0/core/src/main/scala/kafka/server/KafkaServer.scala#L597-L620

Kafka version: kafka_2.11-0.10.0.1

Thanks
-- 
haitao.yao

Reply via email to