thanks for all your help. i successfully upgraded my zookeeper to an
ensemble. what i did is
updated the configuration and restarted the first node. then launched one
node. then launched another node.

i think the thing to remember is to launch the original node first so that
its data would be copied to the
other nodes.


On Wed, May 29, 2013 at 11:29 PM, kishore g <[email protected]> wrote:

> 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
> >> > >
> >> >
> >>
>

Reply via email to