You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by THADC <ti...@gmail.com> on 2018/05/17 18:14:19 UTC

Error Starting 2 Node Cluster on Redhat

Hi, I have a very simple setup (borrowed from Solr Ref Guide "Setting Up a
Zookeeper Ensemble). For zoo.cfg, I have:

*tickTime=2000
initLimit=10
syncLimit=5
dataDir=/opt/zooDeployTest/zookeeper/zooDat

server.1=localhost:2190:2195
server.2=localhost:2191:2196*

when I execute ./bin/zkServer.sh start zoo.cfg, it says zookeeper has
started, but it really hasn't (zkServer.sh status shows its not running).
However, if I comment out the server.2 line, it starts just fine. Any ideas
what the problem might be?





--
Sent from: http://zookeeper-user.578899.n2.nabble.com/

Re: Error Starting 2 Node Cluster on Redhat

Posted by THADC <ti...@gmail.com>.
My apologies. I had forgotten to create the myid files for the two nodes.
Likewise, I forgot to provide the paths to those files (i.e.,
dataDir=/opt/zooDeployTest/zookeeper/zooDat/1 and
dataDir=/opt/zooDeployTest/zookeeper/zooDat/2) in the zoo.cfg files.

Please consider this thread closed.



--
Sent from: http://zookeeper-user.578899.n2.nabble.com/

Re: Error Starting 2 Node Cluster on Redhat

Posted by "Washko, Daniel" <dw...@gannett.com>.
Given your configuration I believe you have another zookeeper process that is to be running on locally but on ports 2191:2196? If that is the case, can you start that instance with the same configuration file and not get an error? Or will that only start if you comment out the server1 line (the opposite of what you did for this instance)?

I don’t see you setting the client port in this configuration. If you are running two instances on the same machine one needs to be running on a different –client-port. Is a different client-port set in server.2’s configuration?

From: Andor Molnar <an...@cloudera.com>
Reply-To: "user@zookeeper.apache.org" <us...@zookeeper.apache.org>
Date: Thursday, May 17, 2018 at 2:37 PM
To: "user@zookeeper.apache.org" <us...@zookeeper.apache.org>
Subject: Re: Error Starting 2 Node Cluster on Redhat

Hi,

What does it write on the console exactly?
"...already running as process...?

Check the ZooKeeper PID file for existence.

Regards,
Andor







On Thu, May 17, 2018 at 11:14 AM, THADC <timothy.hadley.clotworthy@gmail.com
> wrote:

> Hi, I have a very simple setup (borrowed from Solr Ref Guide "Setting Up a
> Zookeeper Ensemble). For zoo.cfg, I have:
>
> *tickTime=2000
> initLimit=10
> syncLimit=5
> dataDir=/opt/zooDeployTest/zookeeper/zooDat
>
> server.1=localhost:2190:2195
> server.2=localhost:2191:2196*
>
> when I execute ./bin/zkServer.sh start zoo.cfg, it says zookeeper has
> started, but it really hasn't (zkServer.sh<http://zkServer.sh> status shows its not running).
> However, if I comment out the server.2 line, it starts just fine. Any ideas
> what the problem might be?
>
>
>
>
>
> --
> Sent from: http://zookeeper-user.578899.n2.nabble.com/<http://zookeeper-user.578899.n2.nabble.com/>
>


Re: Error Starting 2 Node Cluster on Redhat

Posted by Andor Molnar <an...@cloudera.com>.
Hi,

What does it write on the console exactly?
"...already running as process...?

Check the ZooKeeper PID file for existence.

Regards,
Andor







On Thu, May 17, 2018 at 11:14 AM, THADC <timothy.hadley.clotworthy@gmail.com
> wrote:

> Hi, I have a very simple setup (borrowed from Solr Ref Guide "Setting Up a
> Zookeeper Ensemble). For zoo.cfg, I have:
>
> *tickTime=2000
> initLimit=10
> syncLimit=5
> dataDir=/opt/zooDeployTest/zookeeper/zooDat
>
> server.1=localhost:2190:2195
> server.2=localhost:2191:2196*
>
> when I execute ./bin/zkServer.sh start zoo.cfg, it says zookeeper has
> started, but it really hasn't (zkServer.sh status shows its not running).
> However, if I comment out the server.2 line, it starts just fine. Any ideas
> what the problem might be?
>
>
>
>
>
> --
> Sent from: http://zookeeper-user.578899.n2.nabble.com/
>