Kafka備忘録

bin/zookeeper-server-start.sh -daemon config/zookeeper.properties

bin/kafka-server-start.sh -daemon config/server.properties

tail -f logs/server.log


bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic alerts

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic alerts

bin/kafka-console-producer.sh --broker-list localhost:9092 --topic alerts


bin/kafka-server-stop.sh

bin/zookeeper-server-stop.sh