kafka2.x 基本命令

2020-04-05  本文已影响0人  淼哥1986

export kafka_zk=
export kafka_brokers=

kafka-topics --create --zookeeper $kafka_zk --replication-factor 1 --partitions 1 --topic test 
 kafka-topics --list --zookeeper $kafka_zk 
 kafka-topics --topic test --describe --zookeeper $kafka_zk 
 kafka-console-producer --broker-list $kafka_brokers --topic test 
 kafka-console-consumer --bootstrap-server $kafka_brokers --topic test --from-beginning 
 kafka-consumer-groups --list --bootstrap-server $kafka_brokers 
 kafka-consumer-groups --describe --group group_id --bootstrap-server $kafka_brokers 
 kafka-topics --delete --zookeeper $kafka_zk --topic test 
上一篇下一篇

猜你喜欢

热点阅读