Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #kafka #set #retention #time #topic
ADD COMMENT
Topic
Name
2+7 =