It is really simpler than you can imagine. Something like this should be plenty sufficient.
for h in ZK_HOSTS do ssh $h $ZK_HOME/bin/zkServer.sh restart sleep 5 done This is just something I typed in, not something I checked. It is intended to give you the idea. I will leave it to you to fix my silly errors. :-) Note that you probably don't need to do this to the observers since they don't need to know about other observers. On Wed, Jul 21, 2010 at 10:48 AM, Avinash Lakshman < avinash.laksh...@gmail.com> wrote: > Any example scripts for the rolling restart technique that anyone would be > kind enough to share? > >