druid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] jon-wei closed pull request #6363: [Backport] Add zookeeper/kafka tutorial reset instructions
Date Fri, 21 Sep 2018 21:26:48 GMT
jon-wei closed pull request #6363: [Backport] Add zookeeper/kafka tutorial reset instructions
URL: https://github.com/apache/incubator-druid/pull/6363
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/content/tutorials/index.md b/docs/content/tutorials/index.md
index a1338a5f9d0..3123816d06f 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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Mime
View raw message