If you only want to run the server you just need the binary package. A common practice is to rename the zoo_sample.cfg file to zoo.cfg and the run the server
Running zkServer.sh from the sources requires to build the sources with mvn clean install -DskipTests Hope that helps Enrico Il lun 16 dic 2019, 10:45 Sunil CHAUDHARI <sunilchaudh...@dbs.com.invalid> ha scritto: > Hi, > > I am new to ZK. I have installed source package 3.5.5. I did basic > config in zoo.cfg and > > 1*). When I run ZK with below command*: > > ./zkServer.sh --config ../conf/ start > > It gives me error FAILED to WRITE PID. Nowhere in the documentation it > is mentioned that I have to set the $ZOOPIDFILE. Then why is that giving > me error? > > > > > > 2) *When I run ZK without config switch*. > > ./zkServer.sh start > > Then it creates pid file, however gives error > > *Error: Could not find or load main class > org.apache.zookeeper.server.quorum.QuorumPeerMain* > > *Caused by: java.lang.ClassNotFoundException: > org.apache.zookeeper.server.quorum.QuorumPeerMain* > > > > > > Please help me to understand what am I missing? > > Is that OK to download source package or Binary package? I want to run ZK > on Linux machines. > > > > Regards, > > Sunil. > > > > > > > CONFIDENTIAL NOTE: The information contained in this email is intended > only for the use of the individual or entity named above and may contain > information that is privileged, confidential and exempt from disclosure > under applicable law. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution or > copying of this communication is strictly prohibited. If you have received > this message in error, please immediately notify the sender and delete the > mail. Thank you. >