Hi Haitao,

The retention time (retention.ms) configuration can exist as a broker-level
and/or topic-level config. For the latter, changing it does NOT require
broker restarts.


On Sun, Aug 6, 2017 at 10:33 PM, haitao .yao <yao.e...@gmail.com> wrote:

> 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
>



-- 
Kaufman Ng
+1 646 961 8063
Solutions Architect | Confluent | www.confluent.io

Reply via email to