Skip to content
/ kafka Public

Apache Kafka is an open-source stream-processing software platform developed by LinkedIn and donated to the Apache Software Foundation, written in Scala and Java. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds.

Notifications You must be signed in to change notification settings

Sid1706/kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

kafka

How to setup this code -

  1. Make sure Docker is up and running.
  2. Run the below command to run the kafka on local docker docker run --rm -it
    -p 2181:2181 -p 3030:3030 -p 8081:8081
    -p 8082:8082 -p 8083:8083 -p 9092:9092
    -e ADV_HOST=127.0.0.1
    landoop/fast-data-dev

After this step - run the below command docker ps take the container Id and run the below commmand - docker exec -it <container_id> bash

  1. Browse the 127.0.0.1:3030 . this will open a UI for the kafka

  2. With the above mentioned commands you will have a local docker running on your machine.

  3. Create a topic (first_topic) with the below command -

kafka-topics --zookeeper 127.0.0.1:2181 --create --topic first_topic --partitions 3 --replication-factor 1 kafka-topics --zookeeper 127.0.0.1:2181 --list

kafka-topics --zookeeper 127.0.0.1:2181 --topic first_topic --describe

kafka-console-producer --broker-list 127.0.0.1:9092 --topic first_topic kafka-console-consumer --broker-list 127.0.0.1:9092 --topic first_topic

About

Apache Kafka is an open-source stream-processing software platform developed by LinkedIn and donated to the Apache Software Foundation, written in Scala and Java. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages