On each node of the cluster set a unique zookeeper ID
this ID must match with the **broker.id=1** in **server.properties**
echo "1" > /var/zookeeper/data/myid
See config file for details
ls -lrt ./server{1,3}/zookeeper.properties
Part 3: Setup Kafka
Step 1: Create the data directories for Kafka on all menbers of the cluster
See config file for details
ls -lrt ./server{1,3}/server.properties
Part 4: Creating Systemd Unit Files and Starting the Kafka Server
In this section, we will create systemd unit files for the Kafka service.
This will help us perform common service actions such as starting, stopping,
and restarting Kafka in a manner consistent with other Linux services.
Zookeeper is a service that Kafka uses to manage its cluster state and configurations.
It is commonly used in many distributed systems as an integral component.
Step 1: Setup zookeeper service /etc/systemd/system/zookeeper.service