V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chaleaochexist
V2EX  ›  Kafka

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

  •  
  •   chaleaochexist · 214 天前 · 568 次点击
    这是一个创建于 214 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    1 条回复    2024-02-21 22:45:06 +08:00
    bronyakaka
        1
    bronyakaka  
       69 天前
    kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   808 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:44 · PVG 04:44 · LAX 13:44 · JFK 16:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.