開啟zookeeper命令(備註:先進入zookeeper的bin目錄)
./zkserver.sh start
關閉zookeeper命令(備註:先進入zookeeper的bin目錄)
./zkserver.sh stop
kafka啟動命令(備註:先進入kafka目錄)
常規模式啟動kafka
bin/kafka-server-start.sh config/server.properties
程序守護模式啟動kafka
nohup bin/kafka-server-start.sh config/server.properties >/dev/null 2>&1 &
kafka關閉命令(備註:先進入kafka目錄)
bin/kafka-server-stop.sh
kafka 檢視消費者組
./kafka-consumer-groups.sh --bootstrap-server 10.3.70.109:9092 --describe --group test-group1
常用工具檢視
kafka tool
kafka常用命令
kafka常用操作命令 l檢視當前伺服器中的所有topic bin kafka topics.sh list zookeeper hadoop02 2181 l建立topic kafka topics.sh create zookeeper hadoop02 2181 replication fac...
kafka常用命令
啟動集群 nohup bin kafka server start.sh config server.properties 建立topic kafka topics topictt replication factor3 partitions3 create zookeeper hadoop1 21...
Kafka 常用命令
kafka console producer broker list 127.0.0.1 9092 topic mytopic kafka console consumer bootstrap server 127.0.0.1 9092 topic mytopic 建立主題,replication ...