From f12ffd19a860a714fdc0a6f173ec8aea5dc44ddd Mon Sep 17 00:00:00 2001 From: Jonathan Wei Date: Fri, 21 Sep 2018 14:18:31 -0700 Subject: [PATCH] Add Kafka reset instructions for tutorial (#6362) --- docs/content/tutorials/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/content/tutorials/index.md b/docs/content/tutorials/index.md index a7a6769f17d..bd16066c2fe 100644 --- a/docs/content/tutorials/index.md +++ b/docs/content/tutorials/index.md @@ -87,10 +87,22 @@ All persistent state such as the cluster metadata store and segments for the ser Later on, if you'd like to stop the services, CTRL-C to exit the `bin/supervise` script, which will terminate the Druid processes. +### Resetting cluster state + If you want a clean start after stopping the services, delete the `var` directory and run the `bin/supervise` script again. Once every service has started, you are now ready to load data. +#### Resetting Kafka + +If you completed [Tutorial: Loading stream data from Kafka](./tutorial-kafka.html) and wish to reset the cluster state, you should additionally clear out any Kafka state. + +Shut down the Kafka broker with CTRL-C before stopping Zookeeper and the Druid services, and then delete the Kafka log directory at `/tmp/kafka-logs`: + +```bash +rm -rf /tmp/kafka-logs +``` + ## Loading Data ### Tutorial Dataset