Apache Kafka cleanup topics
31 Jul 2018 by Friedrich Ewald · 1 min readIf you want to clean up data from a topic and you don’t have any intermediate storage, it is easy to set the retention time to a few seconds and then wait until the cleanup process kicks in. After that, the retention time can be set to the default value:
./kafka-configs.sh --zookeeper localhost:2181 --alter --entity-type topics --add-config retention.ms=10000 --entity-name <topic-name>
I am Friedrich "Freddy" Ewald,
a software engineer from Germany, living in California. I started this blog in late 2015, mostly as a digital
business card when I bought this domain. Soon after, I started writing down observations and things that I learned
during my work or free time. I am deeply interested in all aspects around software, the internet and teamwork.
You can find more information about me on the about page.