Kafka

Installation of Zookeeper

Installation of Zookeeper

You can not run Apache Kafka without installing the Zookeeper. Here are the steps to start Zookeeper on your machine -

 

  • Go to Kafka directory in C drive. Create a new folder with the title ‘data.’
  • Within data, create two more folders with the names ‘zookeeper’ and ‘kafka.’
  • Copy the address of the zookeeper folder and go back to the Kafka directory.
  • Navigate to the ‘config’ folder under the Kafka directory. 
  • Open the folder, go to ‘zookeeper.properties’ and right-click on it. Click on Edit with Notepad ++.
  • Locate the ‘datadir’ and edit the values by pasting the zookeeper address that you copied earlier. 
  • Save it and the Zookeeper is ready to launch. 
  • Now open the command prompt and type ‘zookeeper-server-start.bat config\zookeeper.properties.’ Press Enter.
  • If an output with a port number gets displayed, then this indicates that the Zookeeper is successfully installed on your machine. 
  • Now open Data and then click on the Zookeeper folder. There will be a new folder created automatically by the name of ‘Version -2’. If not, then it is not installed correctly.
  • Again, go to the Kafka directory and copy the address of the folder.
  • Navigate to Config within Kafka Directory and right-click on ‘sever.properties.’ Click ‘Edit with Notepad++.’
  • Locate the log.dirs and paste the copied values of the Kafka folder address.
  • Type  ‘kafka-server-start.bat config\server.properties’ in the command prompt to check for the output.
  • Now, go to Kafka directory>data>kafka and check for files that are created automatically. This indicates that Kafka is successfully installed on your machine.