Kafka Producer Key & Message Acknowledgements

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

Комментарии • 9

  • @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 Год назад +1

    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.

  • @KLNP-ot6rq
    @KLNP-ot6rq Год назад +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
      ruclips.net/video/fOh98R9usck/видео.html
      Topic with Replication in Multiple Broker Kafka Cluster
      ruclips.net/video/jjtGMij-DPo/видео.html
      Happy Learning :-)