abhishekrb19 edited a comment on 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#issuecomment-522841947 @adziri @erindru I had the same issue. The problem seems to be that the jars are not found in the class path. From the script [run-zk](https://github.com/apache/incubator-druid/blob/druid-0.15.1-incubating-rc2/examples/bin/run-zk#L41), ``` exec java `cat "$CONFDIR"/jvm.config | xargs` \ -cp "$WHEREAMI/../zk/lib/*:$WHEREAMI/../zk/*:$CONFDIR" \ org.apache.zookeeper.server.quorum.QuorumPeerMain \ "$CONFDIR"/zoo.cfg ``` This would expand to something like depending on your environment: `incubator-druid/examples/bin/../zk/lib/`, so the libraries are expected to be in `incubator-druid/examples/zk`. But the documentation here is incorrect: > The startup scripts for the tutorial will expect the contents of the Zookeeper tarball to be located at zk under the apache-druid-0.15.1-incubating package root. Moving `zk` to examples/ fixes the issue for me. I think we could either: - update the documentation to reflect the correct directory for zk - change the run scripts to use the package root directory
---------------------------------------------------------------- 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]
