V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
chaleaochexist
V2EX  ›  Kafka

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

  •  
  •   chaleaochexist · Sep 29, 2023 · 3023 views
    This topic created in 946 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   ·   2469 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:19 · PVG 17:19 · LAX 02:19 · JFK 05:19
    ♥ Do have faith in what you're doing.