Code Monkey home page Code Monkey logo

kafka-producer-example's Introduction

kafka-producer-example

documents

Open Source Kafka Startup in local

  1. Start Zookeeper Server

    sh bin/zookeeper-server-start.sh config/zookeeper.properties

  2. Start Kafka Server / Broker

    sh bin/kafka-server-start.sh config/server.properties

  3. Create topic

    sh bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic NewTopic --partitions 3 --replication-factor 1

  4. list out all topic names

    sh bin/kafka-topics.sh --bootstrap-server localhost:9092 --list

  5. Describe topics

    sh bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic NewTopic

  6. Produce message

    sh bin/kafka-console-producer.sh --broker-list localhost:9092 --topic NewTopic

  7. consume message

    sh bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic NewTopic --from-beginning

Confluent Kafka Community Edition in local

  1. Start Zookeeper Server

    bin/zookeeper-server-start etc/kafka/zookeeper.properties

  2. Start Kafka Server / Broker

    bin/kafka-server-start etc/kafka/server.properties

  3. Create topic

    bin/kafka-topics --bootstrap-server localhost:9092 --create --topic NewTopic1 --partitions 3 --replication-factor 1

  4. list out all topic names

    bin/kafka-topics --bootstrap-server localhost:9092 --list

  5. Describe topics

    bin/kafka-topics --bootstrap-server localhost:9092 --describe --topic NewTopic1

  6. Produce message

    bin/kafka-console-producer --broker-list localhost:9092 --topic NewTopic1

  7. consume message

    bin/kafka-console-consumer --bootstrap-server localhost:9092 --topic NewTopic1 --from-beginning

  8. Send CSV File data to kafka

    bin/kafka-console-producer --broker-list localhost:9092 --topic NewTopic1 <bin/customers.csv

kafka-producer-example's People

Contributors

basahota 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.