#set retention time to forever with -1 value ./bin/kafka-topics --zookeeper zookeeper:2181 --alter --topic my-topic --config retention.ms=-1
bin/kafka-topics.sh --zookeeper hostname:2181 --alter --config retention.ms=172800000 --topic <topic_name>