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

Don’t let inefficiencies in software testing lead to delayed deployments and poor quality products. Get the 90 Days to Better QA Guide by Rainforest QA for best practices to avoid these common pitfalls.

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.

Discover how to optimize your DevOps workflows with our on-demand QA solution, brought to you in partnership with Rainforest QA.

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