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


Copy link to this message
-
Re: Changing hosts
Hi Murali,

What sid/IP/port combination are you using? Make sure that the sids are
unique. Can you attach your zoo.cfg files?
btw, I still think scp is the simpler in your case.

-Vishal

On Thu, May 12, 2011 at 2:07 PM, Murali Krishna. P
<[EMAIL PROTECTED]>wrote:

> all nodes in DEF was logging ServerNotRunning and was connecting to 'A' to
> get the snapshot. I restarted ZK in A and it worked fine after that. Thanks
> guys.
>
>
> Thanks,
> Murali Krishna
>
>
> ________________________________
> From: Ted Dunning <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]; Murali Krishna. P <[EMAIL PROTECTED]>
> Sent: Thursday, 12 May 2011 10:47 PM
> Subject: Re: Changing hosts
>
> I should have added this:
>
> http://zookeeper.apache.org/doc/r3.1.2/zookeeperAdmin.html#sc_zkCommands
>
> <http://zookeeper.apache.org/doc/r3.1.2/zookeeperAdmin.html#sc_zkCommands
> >to
> explain what I meant by that.  I meant to say "when you send the 'stat'
> command, what do you get"?
>
> On Thu, May 12, 2011 at 10:16 AM, Ted Dunning <[EMAIL PROTECTED]>
> wrote:
>
> > When you ask each of the new nodes what their status is, what do they
> say?
> >
> >
> > On Thu, May 12, 2011 at 9:09 AM, Murali Krishna. P <
> [EMAIL PROTECTED]
> > > wrote:
> >
> >> Hi,
> >>      even after 1 hour, the version-2 dir seems to be empty on all 3 new
> >> nodes. Can i just copy the last log.x and last snapshot.x file from
> >> corresponding old nodes and bounce new nodes with new config?
> >>
> >>
> >> Thanks,
> >> Murali Krishna
> >>
> >>
> >> ________________________________
> >> From: Murali Krishna. P <[EMAIL PROTECTED]>
> >> To: Vishal Kher <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]" <
> >> [EMAIL PROTECTED]>
> >> Sent: Thursday, 12 May 2011 8:45 PM
> >> Subject: Re: Changing hosts
> >>
> >> Thanks for the suggestion, but I had already started the process which
> >> Alex had mentioned and DEF is started with ABC. How can we know whether
> DEF
> >> is synced ? the data/version-2 dir is empty, i guess i need to wait till
> it
> >> gets some data there?
> >>
> >>
> >> Thanks,
> >> Murali Krishna
> >>
> >>
> >> ________________________________
> >> From: Vishal Kher <[EMAIL PROTECTED]>
> >> To: [EMAIL PROTECTED]; Murali Krishna. P <
> [EMAIL PROTECTED]>
> >> Sent: Thursday, 12 May 2011 7:24 PM
> >> Subject: Re: Changing hosts
> >>
> >>
> >> Hi,
> >>
> >> Since you can stop clients, another way to achieve what Alex suggested
> is
> >> to:
> >>
> >> 1. stop clients
> >> 2. stop all current zk servers (a_i)
> >> 3. scp -r /etc/zookeeper/ from a_i to b_i
> >> 4. scp -r /var/zookeeper/ from a_i to b_i
> >> 5. On all b_i, edit /etc/zookeeper/zoo.cfg to reflect the correct IP
> >> addresses
> >> 5 start all b_i
> >>
> >> This is assuming that stopping ZK server is ok in our environment.
> >>
> >> -Vishal
> >>
> >>
> >> On Thu, May 12, 2011 at 2:07 AM, Murali Krishna. P <
> >> [EMAIL PROTECTED]> wrote:
> >>
> >> Thanks for the responses,
> >> >     I have the luxury of stopping the clients during the operations.
> So,
> >> I would go with the second approach of cloning.
> >> >
> >> >
> >> >Thanks,
> >> >Murali Krishna
> >> >
> >> >
> >> >
> >> >________________________________
> >> >From: Ted Dunning <[EMAIL PROTECTED]>
> >> >To: Alexander Shraer <[EMAIL PROTECTED]>
> >> >Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Murali
> >> Krishna. P <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]"
> <
> >> [EMAIL PROTECTED]>
> >> >Sent: Thursday, 12 May 2011 5:27 AM
> >> >Subject: Re: Changing hosts
> >> >
> >> >
> >> >
> >> >Alex,
> >> >
> >> >I think that this process does a slightly different thing.  Your
> process
> >> is good for cloning a cluster, but it doesn't address the problem of
> >> transitioning a working cluster.  My process never has two clusters with
> the
> >> same data so all transactions will always be applied to a single
> notional
> >> version of the data.
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