To be precise: create one zoo.cfg for each of the instances. One config file for all is a bad idea.
In each config file, use the same server.X lines, but use a unique clientPort. As you will also have separate data directories, I would recommend having one root directory .../zookeeper where you create subdirectories for each instance. In each of these subdirectories, you may have your zoo.cfg. To start a zookeeper instance, simply have ZOOCFGDIR point to the proper relative path, change to the respective directory and start zookeeper. Best regards, --Jürgen On 08.04.2015 11:22, Swaraj Kumar wrote: > Hi Zheng, > > I am not sure if this command *"zkServer.cmd start zoo.cfg" * works in > windows or not, but in zkServer.cmd it calls zkEnv.cmd where " > *ZOOCFG=%ZOOCFGDIR%\zoo.cfg*" is set. So, if you want to run multiple > instances of zookeeper, change zoo.cfg to your config file and start > zookeeper. > The command will not include any start. > > > > Regards, > > > Swaraj Kumar > Senior Software Engineer I > MakeMyTrip.com > Mob No- 9811774497 > > On Wed, Apr 8, 2015 at 12:29 PM, Zheng Lin Edwin Yeo <edwinye...@gmail.com> > wrote: > > -- Mit freundlichen Grüßen/Kind regards/Cordialement vôtre/Atentamente/С уважением *i.A. Jürgen Wagner* Head of Competence Center "Intelligence" & Senior Cloud Consultant Devoteam GmbH, Industriestr. 3, 70565 Stuttgart, Germany Phone: +49 6151 868-8725, Fax: +49 711 13353-53, Mobile: +49 171 864 1543 E-Mail: juergen.wag...@devoteam.com <mailto:juergen.wag...@devoteam.com>, URL: www.devoteam.de <http://www.devoteam.de/> ------------------------------------------------------------------------ Managing Board: Jürgen Hatzipantelis (CEO) Address of Record: 64331 Weiterstadt, Germany; Commercial Register: Amtsgericht Darmstadt HRB 6450; Tax Number: DE 172 993 071