Code Monkey home page Code Monkey logo

kafka-sample's Introduction

kafka-sample

Kafka comprehensive Guide https://www.youtube.com/watch?v=JalUUBKdcA0

install kafaka

https://kafka.apache.org/downloads.html

Extarxt it to folder

sudo nano .bashrc

add kafka path there

export PATH=/home/programs/kafka_2.11-2.3.0/bin:$PATH

now can access kafka from anywhere in terminal

kafka-topics.sh

Need to create directories to hold kafka data.

Inside kafka directory

/kafka_2.11-2.3.0

mkdir data

mkdir data/zookeeper

Set zookeeper directory in config

nano config/zookeeper.properties

dataDir=/home/xxxx/kafka/data/zookeeper

First Need to run zookeeper server

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

Need create directory to hold kafka data

mkdir data/kafka

nano config/server.properties

log.dirs=/home/xxxxxx/kafka_2.11-2.3.0/data/kafka

Start Kafka

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

To Create Topic

kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

To Consume a topic

kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

Resources

https://www.youtube.com/watch?v=gdo_AMfncpU https://www.youtube.com/watch?v=NjHYWEV_E_o https://stackoverflow.com/questions/58492689/how-to-send-batched-data-with-spring-kafka-producer

kafka-sample's People

Contributors

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