Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Running Multiple Zookeeper Instances on Single Windows Machine

DZone's Guide to

Running Multiple Zookeeper Instances on Single Windows Machine

This tutorial with screenshots will teach you how to run multiple instances of the popular config management software ZookeeperRunner on your local machine.

· DevOps Zone ·
Free Resource

DevOps involves integrating development, testing, deployment and release cycles into a collaborative process. Learn more about the 4 steps to an effective DevSecOps infrastructure.

Running Zookeeper on Windows is easy. Check out this tutorial on how to run multiple Zookeeper instances on one Windows machine.

Step 1: Copy Three Instances of ZookeeperRunner on Your Local Drive

I have copied them as instance1, instance2, and instance3.

zookeeper-multi-instances

Step 2: Copy Required Zookeeper jar Files to [RUNNER_HOME]/lib

You must do this for each of the instances.

zookeeper-runner-jars

Step 3: Update the Zoo Config Files

Again, you must do this for each of the instances.

For the client ports, instance1= 2181, instance2=2182, and instance3=2183.

zookeeper-runner-zoo-config

Step 4: Update the Wrapper Config

zookeeper-runner-wrapper-config

Step 5: Update the myid Files

zookeeper-runner-myid

Step 6 : Start Zookeeper Instances.

You must do this for each of the instances.

zookeeper-runner-start

Below are the running instances.

zookeeper-runner-instance1

zookeeper-runner-instance2

Image title

That's it! You now know how to run multiple instances of Zookeeper on one Windows machine.

Read the 4-part DevOps testing eBook to learn how to detect problems earlier in your DevOps testing processes.

Topics:
zookeeper ,jar ,config ,local

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}