Logo

dev-resources.site

for different kinds of informations.

Apache Kafka: Quickstart: Binary Deployment in Windows

Published at
9/23/2023
Categories
kafka
windows
installation
java
Author
sh3hz
Categories
4 categories in total
kafka
open
windows
open
installation
open
java
open
Author
5 person written this
sh3hz
open
Apache Kafka: Quickstart: Binary Deployment in Windows

Introduction

Windows installation guide for https://kafka.apache.org/quickstart

Step 1: Downloading the Application

Image description

Step 2: Installation

  • Extract the Downloaded file (.tgz) with any file archiver like 7zip
  • After extracting you'll get a TAR File (.tar), Again extract the TAR file.

Image description

Step 3: Configuration

  • Update server.properties

    • Create new Directory - C:\tmp\kafka-logs
    • Update log.dirs=C:\tmp\kafka-logs
  • Update zookeeper.properties

    • Create new Directory - C:\tmp\zookeeper
    • Update _*dataDir*=C:\tmp\zookeeper_

Step 4: Running the Kafka Application

Kafka with ZooKeeper

  • Start Zookeeper Server

.\bin\windows\zookeeper-server-start.bat config\zookeeper.properties

Image description

Image description

  • Start Kafka Server

.\bin\windows\kafka-server-start.bat config\server.properties

Image description

Image description

Step 5: Create Topic

  • Topic name: quickstart-events

.\bin\windows\kafka-topics.bat --create --topic quickstart-events --bootstrap-server localhost:9092

Image description

Image description

Step 6: Producer: Write some events to topic

.\bin\windows\kafka-console-producer.bat --topic quickstart-events --bootstrap-server localhost:9092

Image description

Step 7: Consumer: Read the events

.\bin\windows\kafka-console-consumer.bat --topic quickstart-events --from-beginning --bootstrap-server localhost:9092

Image description

Step 8: Stream messages

  • Add a message in Producer console from Step 6

Image description

  • Message is streamed to the Consumer console from Step 7

Image description

installation Article's
30 articles in total
Favicon
How to Install MySQL on Ubuntu
Favicon
Granite Worktops
Favicon
Bathroom Worktops
Favicon
Kitchen Worktops
Favicon
EdgeDB bare metal Installation and Configuration Script
Favicon
Step by Step Guide: How to Install Grafana on Ubuntu 24.04
Favicon
Anyone tried installing Docker on Ubuntu 24.04 ?
Favicon
How to Install Ubuntu 24.04 on Proxmox VE
Favicon
How to Install WordPress on Ubuntu 24.04 with Nginx and MariaDB
Favicon
How to install Python in WindowsΒ 11?
Favicon
Why Window Replacement is Key for Efficiency and Security
Favicon
Anaconda Installation and Virtual Environments: A Comprehensive Guide for Windows, Linux, and macOS
Favicon
How to Install or Download MongoDB 7 on Windows 10/11 | Step by Step Guide for Localhost
Favicon
How to install Python on Windows
Favicon
PYTHON INSTALLATION (IDLE & COLLAB Execution Test)
Favicon
How to install Python Libraries in Visual Studio Code
Favicon
Top 10 React js interview questions.
Favicon
pfSense Quickstart
Favicon
Outdoor LED display installation requirements and precautions
Favicon
Important details that are easily overlooked during LED module installation
Favicon
Install Java 17 On Linux in 2 Ways: Step-By-Step Guide
Favicon
Day 2: Setting Sail with Docker - Your First Steps in Installation and Setup
Favicon
Creating a Home Theater Experience with Soundproof Curtains
Favicon
Fixing RabbitMQ Startup issues
Favicon
DIY vs. Professional Installation: WiFi Access Points Compared
Favicon
Install Docker on Ubuntu 18.04
Favicon
Apache Kafka: Quickstart: Binary Deployment in Windows
Favicon
Installing Laravel Passport - A Comprehensive Guide
Favicon
Running Apache AGE using docker
Favicon
How to fix sudo docker compose - compose is not a docker command

Featured ones: