zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunil CHAUDHARI <sunilchaudh...@dbs.com.INVALID>
Subject RE: [External] Re: FAILED TO WRITE PID
Date Tue, 17 Dec 2019 04:19:58 GMT
Hi,
Thanks for kind reply.
Does it mean, I need some build tool to build the source?
I want to run the zookeeper multimode cluster. And same for kafka server?
What will you suggest me? Binary or source?
What exactly the special need to prefer source package over binary?


Regards,
Sunil.
-----Original Message-----
From: Enrico Olivelli <eolivelli@gmail.com>
Sent: Monday, December 16, 2019 10:01 PM
To: UserZooKeeper <user@zookeeper.apache.org>
Subject: [External] Re: FAILED TO WRITE PID

This mail originated from an external party outside DBS - user-return-12451-sunilchaudhari=dbs.com@zookeeper.apache.org.
Do not click on links or open attachments unless you recognize the sender and know the content
is safe.

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 <sunilchaudhari@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.
>

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.
Mime
View raw message