Skip to content

bjx2130/kafka-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

转载 Apache Kafka 核心组件详解: https://blog.csdn.net/liyiming2017/article/details/82843036

kafka集群部署   [ 启动,停止 ]集群使用脚本 kafka_2.12-1.0.0-cluster/kafka-cluster-server.sh   注意:启动kafka集群,需要先启动zookeeper

################################################################################### console客户端常用命令:      创建主题: ./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1
--partitions 1 --topic Hello-Kafka

  查看主题:
    ./kafka-topics.sh --list --zookeeper localhost:2181
    ./kafka-topics.sh --list --bootstrap-server localhost:9092



  生产者客户端:
    ./kafka-console-producer.sh --broker-list localhost:9092 --topic test


  消费者客户端
    ./kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning

About

kafka集群搭建

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors