What is the difference between kafka and kafka-cli

2019-08-14 05:19发布

I found there are several kafka in the maven repo.

There are two kafka in the maven repo from apache. https://mvnrepository.com/artifact/org.apache.kafka/kafka https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients

Both of them can produce mesg and consume msg from kafka server.

I want to know the reason for create two kinds of client.

Is there any difference and which one is better?

1条回答
我只想做你的唯一
2楼-- · 2019-08-14 06:14

Both of them can produce mesg and consume msg from kafka server

There is only one clients package, it's included as part of the other. Look at the compile dependencies section under the section where you can copy the POM

If you don't plan on running an embedded Kafka server or any other runtime core dependency of Kafka (such as Kafka Connect or Kafka Streams) or Zookeeper Server, you only need the kafka-clients package

查看更多
登录 后发表回答