Is there a way to delete all the data from a topic or delete the topic before every run?
Can I modify the KafkaConfig.scala file to change the logRetentionHour
logRetentionHour
All data about topics and its partitions are stored in tmp/kafka-logs/. Moreover they are stored in a format topic-partionNumber, so if you want to delete a topic newTopic, you can:
tmp/kafka-logs/
topic-partionNumber
newTopic
rm -rf /tmp/kafka-logs/newTopic-*