Support Questions
Find answers, ask questions, and share your expertise

How to return the original log retention after purge kafka topics

we have hadoop cluster version 2.6.0.x with 3 kafka machines version -

we want to purge all data files from all kafka's topics ( purge completely all data )

the CLI for this action should be --zookeeper localhost:13003 --alter --topic Topic1 --config --zookeeper localhost:13003 --alter --topic Topic2 --config --zookeeper localhost:13003 --alter --topic Topic3 --config --zookeeper localhost:13003 --alter --topic Topic4 --config

since we Temporarily update the retention time on the topic to one second (1000 ms )

then how to return the previous original retention!

Note - log.retention.hours = 168 ( from the ambari GUI ) and this is the original value

so how to return the original value (168 hours) back on all topics ? after purge all Topics?