Giter VIP home page Giter VIP logo

apache-kafka-producer-demo's Introduction

apache-kafka-producer-demo

This application helps to understand how to send JSON objects using Kafka in realtime

  1. Download and install the Kafka on Windows, name the folder as kafka under c:.
  2. Configure the zookeeper.properties file under folder c:\kafka\config, dataDir=c:/kafka/zookeeper-data
  3. Configure the server.properties file under folder c:\kafka\config, listeners=PLAINTEXT://127.0.0.1:9092 log.dirs=c:/kafka/kafka-logs
  4. Run the zookeeper in a new command terminal using the command from path c:\kafka, .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
  5. Run the kafka server in a new command terminal using the command from path c:\kafka, .\bin\windows\kafka-server-start.bat .\config\server.properties
  6. Run the topic creation in a new command terminal from path c:\kafka, .\bin\windows\kafka-topics.bat --create --topic TestTopic --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1
  7. Run the producer in a new command terminal to create the messages in topic TestTopic from path c:\kafka, .\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic TestTopic

    Welcome to the world of Kafka Messaging Happy Learning

  8. Run the consumer in a new command terminal to consume the messages from topic TestTopic on path c:\kafka, .\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic TestTopic

apache-kafka-producer-demo's People

Contributors

engineersonal avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.