Open deric opened 7 years ago
Any progress on this issue? It's currently hosing me on centos 7 it appears. Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
Is the only alternative to use archive?
@matthewmrichter and anyone else struggling to get this working on centos 7 I got a workaround from here:
https://github.com/deric/puppet-zookeeper/issues/103
Pass in this parameter into the module class: java_opts => '-cp "/usr/lib/zookeeper/lib/*:/usr/lib/zookeeper/zookeeper.jar"'
It adds /usr/lib/zookeeper/lib/*:/usr/lib/zookeeper/zookeeper.jar to the end of the class path which is what it needs to work on centos 7.
Currently the
CLASSPATH
environment variable is reconfigured at multiple places, customsystemd
config looks like this:in
/etc/zookeeper/conf/environment
file isCLASSPATH
set only forarchive
install method:Each OS might have slightly different
CLASSPATH
:/usr/share/java/zookeeper.jar
/usr/lib/zookeeper/lib/*:/usr/lib/zookeeper/zookeeper.jar
Originally reported in #103.