kafka-topics retention.ms code example
Example: kafka set retention time for topic
#set retention time to forever with -1 value
./bin/kafka-topics --zookeeper zookeeper:2181 --alter --topic my-topic --config retention.ms=-1
#set retention time to forever with -1 value
./bin/kafka-topics --zookeeper zookeeper:2181 --alter --topic my-topic --config retention.ms=-1