bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-server-stop.sh config/server.properties
bin/zookeeper-server-stop.sh config/zookeeper.properties
bin/kafka-topics.sh \
--bootstrap-server localhost:9092 \
--list
bin/kafka-topics.sh \
--bootstrap-server localhost:9092 \
--topic my_topic \
--describe
bin/kafka-topics.sh \
--bootstrap-server localhost:9092 \
--replication-factor 1 \
--partitions 1 \
--topic my_topic \
--create
bin/kafka-topics.sh \
--bootstrap-server localhost:9092 \
--topic my_topic \
--delete
bin/kafka-console-producer.sh \
–-broker-list localhost:9092 \
–-topic my_topic
bin/kafka-consumer-groups.sh \
--bootstrap-server localhost:9092 \
--list
bin/kafka-consumer-groups.sh \
--bootstrap-server localhost:9092 \
--group my_group_name \
--describe
bin/kafka-consumer-groups.sh \
--bootstrap-server localhost:9092 \
--group my_group_name \
--delete
bin/kafka-console-consumer.sh \
--bootstrap-server localhost:9092 \
--from-beginning \
--topic my_topic
bin/kafka-console-consumer.sh \
--bootstrap-server localhost:9092 \
--from-beginning \
--partition 1 \
--topic my_topic
bin/kafka-console-consumer.sh \
--bootstrap-server localhost:9092 \
--from-beginning \
--group group_name \
--topic my_topic