How to Install ZooKeeper on Windows 10

ZooKeeper is a distributed coordination service that helps manage distributed applications by providing synchronization primitives. In this tutorial, we will learn how to install ZooKeeper on Windows 10.

Prerequisites

Before we begin, ensure that you have the following:

Step 1: Download ZooKeeper

  1. Visit the ZooKeeper download page on the Apache website.
  2. Scroll down to the latest stable release and download the binary file with the .tar.gz extension (e.g., zookeeper-X.Y.Z.tar.gz).

Step 2: Extract the ZooKeeper file

  1. Navigate to the downloaded .tar.gz file and extract it to a directory of your choice (e.g., C:\zookeeper).
  2. Rename the extracted folder to zookeeper.

Step 3: Configure ZooKeeper

  1. Open the zookeeper folder and navigate to the conf directory.
  2. Find the zoo_sample.cfg file and rename it to zoo.cfg.
  3. Open the zoo.cfg file with a text editor.
  4. Modify the dataDir property to specify the directory where the ZooKeeper data will be stored. For example, dataDir=C:\\zookeeper\\data.
  5. Save and exit the file.

Step 4: Start ZooKeeper

  1. Open Command Prompt.
  2. Navigate to the bin directory inside the zookeeper folder.
  3. Run the zkServer.cmd file by typing .\zkServer.cmd.
  4. Wait until you see the output [ZooKeeperServerMain] INFO org.apache.zookeeper.server.ZooKeeperServerMain - Starting.

Congratulations, you have successfully installed and started ZooKeeper on Windows 10!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!