I am testing and debugging an event-sourcing (or stateful stream processing) application that runs in top of kafka and uses samza. I want to remove queues and topics in kafka so that samza jobs get an empty kafka installation at startup.
How can I do it??
Edit:
The question is quite more complex and specific that what I wrote at first.
As David states there is a solution to purge the topic, starting from kafka 0.8.2: Purge Kafka Queue
What I am interested in is in setting up a testing environment that automatically loads zookeeper and kafka (which are bundled in my git repository as binary packages).
I am using gradle environment + eclipse and JUnit. I run integration tests from eclipse (as JUnit tests).
How could the loading be automated? Should I create a specific Test class to set up the environment and launch kafka and zookeeper? Is there any reference example/code? The idea would be to load the enviroment, run a few tests, and stop. If this process could be made in a few seconds, better.