Add Kafka reset instructions for tutorial (#6362)

This commit is contained in:
Jonathan Wei 2018-09-21 14:18:31 -07:00 committed by GitHub
parent 255214cbe6
commit f12ffd19a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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