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 how you can maximize big data in the cloud with Apache Hadoop. Download this eBook now. Brought to you in partnership with Hortonworks.

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

Hortonworks DataFlow is an integrated platform that makes data ingestion fast, easy, and secure. Download the white paper now.  Brought to you in partnership with Hortonworks

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.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}