Running Multiple Zookeeper Instances On Single Windows Machine

This 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 instance1, instance2 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

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s