You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by "S.L" <si...@gmail.com> on 2015/12/04 08:16:00 UTC

Zookeeper change the default quorum and the leader election ports

I am looking at the documentation for setting up a cluster of zookeeper
instances, one of the options(albeit its not redundant) is to set up
multiple zookeeper instances on a single machine .

If I were to set up multiple instances on a single machine then I need to
change the default quorum and the leader election ports from 2888 & 3888 to
something else , how can I change the default port? There does not seem to
be any documented way of doing so .

RE: Zookeeper change the default quorum and the leader election ports

Posted by Akihiro Suda <su...@lab.ntt.co.jp>.
How about this?

$ for f in 1 2 3; do zkServer.sh --config /zk$f_conf start; done

(Suppose you have set up zoo.cfg file in /zk1_conf, /zk2_conf, and /zk3_conf)



-----Original Message-----
From: S.L [mailto:simpleliving016@gmail.com] 
Sent: Saturday, December 05, 2015 12:26 AM
To: user@zookeeper.apache.org
Subject: Re: Zookeeper change the default quorum and the leader election ports

Yes, I have seen that note  ,but all it mentions is to use localhost as the server name with those different ports for each server (2888:3888, 2889:3889, 2890:3890) , but how do I make the zookeeper servers start at those non default ports 2889 and 2890  ?

On Fri, Dec 4, 2015 at 1:35 AM, Akihiro Suda <su...@lab.ntt.co.jp>
wrote:

> See the "Note" in this section:
> https://zookeeper.apache.org/doc/r3.4.7/zookeeperStarted.html#sc_Runni
> ngReplicatedZooKeeper
>
>
> Regards,
>
> Akihiro Suda
>
> -----Original Message-----
> From: S.L [mailto:simpleliving016@gmail.com]
> Sent: Friday, December 04, 2015 4:16 PM
> To: user@zookeeper.apache.org
> Subject: Zookeeper change the default quorum and the leader election 
> ports
>
> I am looking at the documentation for setting up a cluster of 
> zookeeper instances, one of the options(albeit its not redundant) is 
> to set up multiple zookeeper instances on a single machine .
>
> If I were to set up multiple instances on a single machine then I need 
> to change the default quorum and the leader election ports from 2888 & 
> 3888 to something else , how can I change the default port? There does 
> not seem to be any documented way of doing so .
>
>
>
>




Re: Zookeeper change the default quorum and the leader election ports

Posted by "S.L" <si...@gmail.com>.
Yes, I have seen that note  ,but all it mentions is to use localhost as the
server name with those different ports for each server (2888:3888,
2889:3889, 2890:3890) , but how do I make the zookeeper servers start at
those non default ports 2889 and 2890  ?

On Fri, Dec 4, 2015 at 1:35 AM, Akihiro Suda <su...@lab.ntt.co.jp>
wrote:

> See the "Note" in this section:
> https://zookeeper.apache.org/doc/r3.4.7/zookeeperStarted.html#sc_RunningReplicatedZooKeeper
>
>
> Regards,
>
> Akihiro Suda
>
> -----Original Message-----
> From: S.L [mailto:simpleliving016@gmail.com]
> Sent: Friday, December 04, 2015 4:16 PM
> To: user@zookeeper.apache.org
> Subject: Zookeeper change the default quorum and the leader election ports
>
> I am looking at the documentation for setting up a cluster of zookeeper
> instances, one of the options(albeit its not redundant) is to set up
> multiple zookeeper instances on a single machine .
>
> If I were to set up multiple instances on a single machine then I need to
> change the default quorum and the leader election ports from 2888 & 3888 to
> something else , how can I change the default port? There does not seem to
> be any documented way of doing so .
>
>
>
>

RE: Zookeeper change the default quorum and the leader election ports

Posted by Akihiro Suda <su...@lab.ntt.co.jp>.
See the "Note" in this section: https://zookeeper.apache.org/doc/r3.4.7/zookeeperStarted.html#sc_RunningReplicatedZooKeeper


Regards,

Akihiro Suda

-----Original Message-----
From: S.L [mailto:simpleliving016@gmail.com] 
Sent: Friday, December 04, 2015 4:16 PM
To: user@zookeeper.apache.org
Subject: Zookeeper change the default quorum and the leader election ports

I am looking at the documentation for setting up a cluster of zookeeper instances, one of the options(albeit its not redundant) is to set up multiple zookeeper instances on a single machine .

If I were to set up multiple instances on a single machine then I need to change the default quorum and the leader election ports from 2888 & 3888 to something else , how can I change the default port? There does not seem to be any documented way of doing so .