Installing Apache Kafka on Windows 11 in 5 minutes

Unboxing Big Data
24 Mar 202405:25

Summary

TLDRIn this step-by-step tutorial, Amrit Pal Singh guides viewers through the process of installing Apache Kafka on a Windows machine. He covers downloading the latest version, extracting the files, setting up environment variables, and configuring the necessary properties for both Zookeeper and Kafka. The tutorial also demonstrates how to start both Zookeeper and Kafka services using PowerShell commands, as well as verifying that the services are running using the 'jps' command. By following these steps, users can successfully install and run Kafka on Windows for data streaming and processing.

Takeaways

  • 😀 First, download the Apache Kafka ZIP archive from the official website and choose the appropriate Scala version (2.12 or 2.13).
  • 😀 Extract the downloaded file to a folder on your system, e.g., 'C:\kafka'.
  • 😀 Set up the 'KAFKA_HOME' environment variable to point to the Kafka folder (e.g., 'C:\kafka').
  • 😀 Update the system 'Path' environment variable to include the Kafka 'bin' directory for easy access to Kafka commands.
  • 😀 Configure Zookeeper by editing the 'zookeeper.properties' file and setting the correct path for the 'dataDir' variable.
  • 😀 Edit the 'server.properties' file to set the correct path for the 'log.dirs' variable where Kafka will store logs.
  • 😀 Start Zookeeper using the command: '.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties' in PowerShell.
  • 😀 After starting Zookeeper, open a new PowerShell window to start Kafka with the command: '.\bin\windows\kafka-server-start.bat .\config\server.properties'.
  • 😀 Open a third PowerShell window and use the 'jps' command to check that both Zookeeper and Kafka services are running correctly.
  • 😀 Once installed, you should see 'QuorumPeerMain' (Zookeeper) and 'Kafka' (Kafka broker) in the JPS output, confirming that Kafka is running.
The video is abnormal, and we are working hard to fix it.
Please replace the link and try again.

Outlines

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Mindmap

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Keywords

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Highlights

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Transcripts

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now
Rate This

5.0 / 5 (0 votes)

Related Tags
Apache KafkaWindows InstallationTech TutorialSoftware SetupData StreamingKafka ServerZookeeperWindows SetupDeveloper GuideBeginner TutorialTech How-To