This is an automated email from the ASF dual-hosted git repository.
jonwei pushed a commit to branch 0.12.3
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git
The following commit(s) were added to refs/heads/0.12.3 by this push:
new c01a68c Add zookeeper/kafka tutorial reset instructions (#6363)
c01a68c is described below
commit c01a68c33dcdd98e94db1ad92819ef52f53f8e62
Author: Jonathan Wei <[email protected]>
AuthorDate: Fri Sep 21 14:26:46 2018 -0700
Add zookeeper/kafka tutorial reset instructions (#6363)
---
docs/content/tutorials/index.md | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/docs/content/tutorials/index.md b/docs/content/tutorials/index.md
index a1338a5..3123816 100644
--- a/docs/content/tutorials/index.md
+++ b/docs/content/tutorials/index.md
@@ -95,7 +95,7 @@ Once every service has started, you are now ready to load
data.
All persistent state such as the cluster metadata store and segments for the
services will be kept in the `var` directory under the druid-#{DRUIDVERSION}
package root.
Later on, if you'd like to stop the services, CTRL-C to exit from the running
java processes. If you
-want a clean start after stopping the services, delete the `log` and `var`
directory and run the `init` script again.
+want a clean start after stopping the services, delete the `log` and `var`
directory and run the `init` script again, then shut down Zookeper and delete
the Zookeeper dataDir under `/tmp/zookeeper`.
From the druid-#{DRUIDVERSION} directory:
@@ -105,6 +105,23 @@ rm -rf var
bin/init
```
+If you ran the [Tutorial: Loading stream data from
Kafka](./tutorial-kafka.html), you should shut down Kafka before shutting down
Zookeeper, and then delete the Kafka log directory, which is at
`/tmp/kafka-logs`.
+
+Ctrl-C to shut down the Kafka broker, and then delete the log directory:
+
+```bash
+rm -rf /tmp/kafka-logs
+```
+
+Now stop Zookeeper and clear its state. From the zookeeper-3.4.10 directory:
+
+```bash
+./bin/zkServer.sh stop
+rm -rf /tmp/zookeeper
+```
+
+After clearing out Druid and Zookeeper state, restart Zookeeper and then
restart the Druid services.
+
## Loading Data
### Tutorial Dataset
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]