Giter VIP home page Giter VIP logo

kafka's Introduction

KAFKA

Alias a tener en cuenta:

alias zookeeper-start='/home/erick/kafka_2.13-3.0.0/bin/zookeeper-server-start.sh /home/erick/kafka_2.13-3.0.0/config/zookeeper.properties'
alias kafka-start='/home/erick/kafka_2.13-3.0.0/bin/kafka-server-start.sh /home/erick/kafka_2.13-3.0.0/config/server.properties'
alias k-topic='kafka-topics.sh  --bootstrap-server localhost:9092'
alias k-producer='kafka-console-producer.sh --bootstrap-server localhost:9092'
alias k-consumer='kafka-console-consumer.sh --bootstrap-server localhost:9092'

Resumen de comandos: Resumen.sh

TOPICOS

Codigo de grafo en mermaid
graph LR
A[Topic] --> B((Create))
A --> C((List))
A --> D((Describe))
A --> E((Delete))
B -->F[k-topic --topic first_topic --create --partitions 3 --replication-factor 1]
C -->G[k-topic --list]
D -->H[k-topic --topic first_topic --describe]
E -->I[k-topic --topic first_topic --delete]

TOPICOS

PRODUCER

Codigo de grafo en mermaid
graph LR
A[PRODUCER] --> B[create producer]
A[PRODUCER] --> C[create producer with acks]
A[PRODUCER] --> D[create producer with key]
A[PRODUCER] --> E[create producer with round-robin]
B -->F[k-producer --topic first_topic]
C -->G[k-producer --topic first_topic --producer-property acks=all]
D -->H[k-producer --topic first_topic --property parse.key=true --property key.separator=:]
E -->I[k-producer 
--producer-property partitioner.class = org.apache.kafka.clients.producer.RoundRobinPartitioner 
--topic first_topic]

PRODUCER

CONSUMER

Codigo de grafo en mermaid
graph LR
G[CONSUMER] --> H[create consumer]
G[CONSUMER] --> I[create consumer from beginning]
G[CONSUMER] --> J[create consumer with display key, values and timestamp]
G[CONSUMER] --> K[create consumer with group]
H -->L[k-consumer --topic first_topic]
I -->M[k-consumer --topic first_topic --from-beginning]
J -->N[k-consumer --topic first_topic 
--formatter kafka.tools.DefaultMessageFormatter 
--property print.timestamp=true 
--property print.key=true 
--property print.value=true 
--property print.partition=true 
--from-beginning]
K -->O[-consumer --topic first_topic --group my-first-application]

CONSUMER

kafka's People

Contributors

erickvaernet avatar

Watchers

 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.