kafka 常用操作

1
2
3
4
/usr/local/kafka/kafka_2.12-1.0.1/bin/kafka-topics.sh --list --zookeeper localhost:2181/kafka
/usr/local/kafka/kafka_2.12-1.0.1/bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group foo
/usr/local/kafka/kafka_2.12-1.0.1/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic xxx --from-beginning
/usr/local/kafka/kafka_2.12-1.0.1/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic xxx