Create multiple consumers in Kafka in command line

前端 未结 5 681
孤城傲影
孤城傲影 2021-02-08 05:59

I\'m new in Kafka. When I was running the quick start example in command line, I found I can\'t create multiple consumers in command line.

Condition:

I built a t

5条回答
  •  清歌不尽
    2021-02-08 06:29

    When you consume Topic without groupid Kafka create random groupid for your session. You can specify groupid --consumer-property group.id=test-consumer-group if groupid exist or you can add to your session new groupid(name) when you consume if group not exist --topic second-topic --group my-first-group p and Kafka will create new group

提交回复
热议问题