SamuelMarks opened a new issue #7818: mkdir var/zk required, otherwise:   
Error: Could not find or load main class 
org.apache.zookeeper.server.quorum.QuorumPeerMain
URL: https://github.com/apache/incubator-druid/issues/7818
 
 
   ### Affected Version
   
   0.14.2
   
   ### Description
   Ubuntu 18.04 following http://druid.io/docs/latest/tutorials/index.html
   
   ```
   $ bin/supervise -c quickstart/tutorial/conf/tutorial-cluster.conf
   [Sun Jun  2 00:52:18 2019] Running command[zk], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/zk.log]: 
bin/run-zk quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Running command[coordinator], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/coordinator.log]:
 bin/run-druid coordinator quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Running command[broker], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/broker.log]: 
bin/run-druid broker quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Running command[router], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/router.log]: 
bin/run-druid router quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Running command[historical], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/historical.log]:
 bin/run-druid historical quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Running command[overlord], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/overlord.log]: 
bin/run-druid overlord quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Running command[middleManager], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/middleManager.log]:
 bin/run-druid middleManager quickstart/tutorial/conf
   [Sun Jun  2 00:52:18 2019] Command[zk] exited (pid = 6876, exited = 1)
   [Sun Jun  2 00:52:18 2019] Command[zk] failed, see logfile for more details: 
/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/zk.log
   [Sun Jun  2 00:52:21 2019] Running command[zk], logging 
to[/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/zk.log]: 
bin/run-zk quickstart/tutorial/conf
   [Sun Jun  2 00:52:21 2019] Command[zk] exited (pid = 7150, exited = 1)
   [Sun Jun  2 00:52:21 2019] Command[zk] failed, see logfile for more details: 
/home/ubuntu/Downloads/apache-druid-0.14.2-incubating/var/sv/zk.log
   ^C[Sun Jun  2 00:52:22 2019] Sending signal[15] to command[middleManager] 
(timeout 10s).
   [Sun Jun  2 00:52:22 2019] Command[middleManager] exited (pid = 6882, exited 
= 143)
   [Sun Jun  2 00:52:22 2019] Sending signal[15] to command[overlord] (timeout 
10s).
   [Sun Jun  2 00:52:23 2019] Command[overlord] exited (pid = 6881, exited = 
143)
   [Sun Jun  2 00:52:23 2019] Sending signal[15] to command[coordinator] 
(timeout 10s).
   [Sun Jun  2 00:52:23 2019] Sending signal[15] to command[broker] (timeout 
10s).
   [Sun Jun  2 00:52:23 2019] Sending signal[15] to command[router] (timeout 
10s).
   [Sun Jun  2 00:52:23 2019] Sending signal[15] to command[historical] 
(timeout 10s).
   [Sun Jun  2 00:52:23 2019] Command[router] exited (pid = 6879, exited = 143)
   [Sun Jun  2 00:52:23 2019] Command[historical] exited (pid = 6880, exited = 
143)
   [Sun Jun  2 00:52:23 2019] Command[coordinator] exited (pid = 6877, exited = 
143)
   [Sun Jun  2 00:52:23 2019] Command[broker] exited (pid = 6878, exited = 143)
   [Sun Jun  2 00:52:23 2019] Exiting.
   
   ~/Downloads/apache-druid-0.14.2-incubating$ cat 
~/Downloads/apache-druid-0.14.2-incubating/var/sv/zk.log
   Error: Could not find or load main class 
org.apache.zookeeper.server.quorum.QuorumPeerMain
   ```
   
   Looking through all the configs, and I found that `zk` points to a folder:
   ```
   $ cat quickstart/tutorial/conf/zk/zoo.cfg
   #
   # Server
   #
   
   tickTime=2000
   dataDir=var/zk
   clientPort=2182
   initLimit=5
   syncLimit=2
   
   #
   # Autopurge
   #
   
   autopurge.snapRetainCount=5
   autopurge.purgeInterval=1
   ```
   
   So I tried `mkdir ~/Downloads/apache-druid-0.14.2-incubating/var/zk`, which 
worked.
   ```

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to