You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/08/20 03:53:43 UTC
[GitHub] [incubator-druid] 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
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:
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