Kafka Producer Key & Message Acknowledgements

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 10

  • @KnowledgeAmplifier1
    @KnowledgeAmplifier1  2 роки тому

    Reference Code:
    -------------------------------
    Start Zookeeper:
    ---------------------------------------
    F:/kafka_2.12-3.2.0/bin/windows/zookeeper-server-start.bat F:/kafka_2.12-3.2.0/config/zookeeper.properties
    Start Kafka-server:
    -----------------------------------------
    F:/kafka_2.12-3.2.0/bin/windows/kafka-server-start.bat F:/kafka_2.12-3.2.0/config/server.properties
    Create topic:
    ------------------------------------
    F:/kafka_2.12-3.2.0/bin/windows/kafka-topics.bat --create --topic hello_world2 --bootstrap-server localhost:9092 --replication-factor 1 --partitions 2
    Start Producer:
    --------------------------------------
    Earlier we were launching producer using this command --
    F:/kafka_2.12-3.2.0/bin/windows/kafka-console-producer.bat --topic hello_world2 --bootstrap-server localhost:9092
    Now to send the messages and key-value pair , we are going to launch producer using this command --
    F:/kafka_2.12-3.2.0/bin/windows/kafka-console-producer.bat --bootstrap-server localhost:9092 --property "parse.key=true" --property "key.separator=:" --topic hello_world2
    Publish the messages --
    1001:"Mobile,100"
    1002:"Mouse,50"
    1001:"Computer,1500"
    1003:"Pen,2"
    1002:"Earphone,65"
    1001:"Notebook,99"

    Start Consumer:
    -------------------------------------
    F:/kafka_2.12-3.2.0/bin/windows/kafka-console-consumer.bat --topic hello_world2 --from-beginning --bootstrap-server localhost:9092

  • @GuyDope-fn6ru
    @GuyDope-fn6ru Рік тому +2

    best Apache Kafka tutorial I saw so far!

  • @RadomName3457
    @RadomName3457 Рік тому +1

    loving your kafka series so far. Best on the platform with your theory and real examples.

  • @dadomu5102
    @dadomu5102 7 днів тому

    wonderful lecture

  • @KLNP-ot6rq
    @KLNP-ot6rq 2 роки тому +1

    Very good ! nicely explained !

  • @shahezadalam6709
    @shahezadalam6709 2 роки тому +2

    Will you cover ssl and tls in kafka and also multinode cluster?

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  2 роки тому

      Hello shahezad alam, sure will cover ssl & tls , for multinode cluster , you can have a look in the below videos which already I uploaded --
      Kafka Cluster with Multiple Brokers
      ua-cam.com/video/fOh98R9usck/v-deo.html
      Topic with Replication in Multiple Broker Kafka Cluster
      ua-cam.com/video/jjtGMij-DPo/v-deo.html
      Happy Learning :-)