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

Running Multiple Zookeeper Instances on a Single Windows Machine

DZone's Guide to

Running Multiple Zookeeper Instances on a Single Windows Machine

Mohammad Nadeem's quick tutorial shows us just how quick and easy it is to run multiple Zookeeper instances on a single Windows machine.

· Big Data Zone
Free Resource

Learn best practices according to DataOps. Download the free O'Reilly eBook on building a modern Big Data platform.

The following is indeed correct with Zookeeper Runner:

Running Zookeeper in windows in made so easy that even grandma can do it.

Step 1:

Copy three instances of ZookeeperRunner on your local drive.

I have copied it as instance1instance2, and instance3

zookeeper-multi-instances

Step 2

Copy required zookeeper jar files to [RUNNER_HOME]/lib

Note: You have to do it for all the instances.

zookeeper-runner-jars

Step 3

Update the zoo config files.

Note: you have to do it for all the instances.

client ports

instance1= 2181

instance2=2182

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.

Note: You have to do it for all the instances.

zookeeper-runner-start

Here are the running instances.

zookeeper-runner-instance1

zookeeper-runner-instance2

zookeeper-runner-instance3

Find the perfect platform for a scalable self-service model to manage Big Data workloads in the Cloud. Download the free O'Reilly eBook to learn more.

Topics:
zookeeper ,instances ,windows ,server

Published at DZone with permission of Mohammad Nadeem, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}