Skip to content

opensourceteams/kafka-java-maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

启动zookeeper

zkServer.sh start

停止zookeeper

zkServer.sh stop

查看zookeeper状态

zkServer.sh status

启动Kafka server

kafka-server-start.sh config/server.properties

创建主题

kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

查看主题

kafka-topics.sh --list --zookeeper localhost:2181

控制台生产消息

kafka-console-producer.sh --broker-list localhost:9092 --topic test

控制台消费消息

kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

java maven 客户端,生产数据,消息数据

About

kafka 客户端操作

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages