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

Hortonworks Sandbox for HDP and HDF is your chance to get started on learning, developing, testing and trying out new features. Each download comes preconfigured with interactive tutorials, sample data and developments from the Apache community.

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 Community Connection (HCC) is an online collaboration destination for developers, DevOps, customers and partners to get answers to questions, collaborate on technical articles and share code examples from GitHub.  Join the discussion.

Topics:
zookeeper ,instances ,windows ,server

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}