chaleaochexist
V2EX  ›  Kafka

kafka-console-consumer.sh 同时读取某个 topic 的所有 partition 能实现吗?

  •  
  •   chaleaochexist · Sep 29, 2023 · 3209 views
    This topic created in 980 days ago, the information mentioned may be changed or developed.

    ./kafka-console-consumer.sh --offset latest --bootstrap-server 10.54.7.143:9092 --topic ***

    这样报错, 因为 --offset latest 和 partition 必须同时指定. 要么都不指定.

    1 replies    2024-02-21 22:45:06 +08:00
    bronyakaka
        1
    bronyakaka  
       Feb 21, 2024
    kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3686 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 04:27 · PVG 12:27 · LAX 21:27 · JFK 00:27
    ♥ Do have faith in what you're doing.