Apache ZooKeeper is a distributed coordination service that is commonly used in distributed systems. In this tutorial, we will guide you through the process of installing ZooKeeper on Windows 11.
Before installing Apache ZooKeeper, make sure you have the following prerequisites installed on your Windows 11 machine:
zookeeper
.zookeeper/conf
directory.zoo_sample.cfg
file to zoo.cfg
.zoo.cfg
file using a text editor.dataDir
parameter to point to a directory where ZooKeeper will store its data. For example: C:/zookeeper/data
.zoo.cfg
file.Open a Command Prompt window with administrator privileges.
Navigate to the zookeeper/bin
directory.
Run the following command to start ZooKeeper:
.\zkServer.cmd
ZooKeeper should now be running. Keep the Command Prompt window open.
Open another Command Prompt window with administrator privileges.
Navigate to the zookeeper/bin
directory.
Run the following command to connect to ZooKeeper:
.\zkCli.cmd
You should now see the ZooKeeper prompt. Type help
to see a list of available commands.
To test if ZooKeeper is functioning correctly, run the following command:
create /test test
If successful, you should see the message Created /test
.
Type exit
to exit the ZooKeeper prompt.
Congratulations, you have successfully installed Apache ZooKeeper on your Windows 11 machine!
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!