Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> safely upgrade single instance to ensemble


Copy link to this message
-
Re: safely upgrade single instance to ensemble
Are you ok with shutting down zookeeper and clients ? If yes, then

1. shutdown existing zookeeper
2. copy zookeeper data and translog directory new locations
3. change the zoo.config on each server to include all 3 servers. see
(http://zookeeper.apache.org/doc/r3.2.2/zookeeperStarted.html#sc_RunningReplicatedZooKeeper)

Start the servers, change your clients to use all
zk1:port1,zk2:port2,zk3:port3 in the connect string.

thanks,
Kishore G

On Wed, May 29, 2013 at 2:54 AM, Kuba Lekstan <[EMAIL PROTECTED]> wrote:
> Nothing bad should happen as long as you start your current ZK instance
> before other.
>
> BTW: Before doing the change in production environment do some tests.
>
>
> 2013/5/29 Nathaniel Domingo <[EMAIL PROTECTED]>
>
>> not existing cluster. zookeeper operating in standalone mode. i need to
>> convert it into a cluster for redundancy.
>>
>>
>> On Wed, May 29, 2013 at 4:34 PM, Kuba Lekstan <[EMAIL PROTECTED]> wrote:
>>
>> > Hello,
>> >
>> > If you want to just add one ZK node to existing cluster the easier and
>> > safest way would be to do a rolling restart.
>> >
>> > Kuba.
>> >
>> >
>> > 2013/5/29 Nathaniel Domingo <[EMAIL PROTECTED]>
>> >
>> > > Hi,
>> > >
>> > > What do you think is the safest way of upgrading a single instance
>> > > zookeeper to an ensemble? The goal is not to loose any data.
>> > >
>> > > Regards,
>> > > Nathaniel
>> > >
>> >
>>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB