zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akihiro Suda" <suda.akih...@lab.ntt.co.jp>
Subject RE: Zookeeper change the default quorum and the leader election ports
Date Mon, 07 Dec 2015 04:26:38 GMT

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 <suda.akihiro@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 .
>
>
>
>




Mime
View raw message