Sign inSign up

yexianyi/kafka

By yexianyi

•Updated about 8 years ago

This is for Kafka 2.11-2.0.0.

Image
0

1.0K

yexianyi/kafka repository overview

⁠docker-kafka

⁠For standalone:

docker run -it -p9092:9092 -p2181:2181 -d yexianyi/kafka
or
docker run -it -P -d yexianyi/kafka

⁠Useful Commands:

⁠Create Topic:

bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

⁠Send some messages

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

⁠Consume message:

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

⁠Start Zookeeper in manually

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

⁠Start kafka Server in manually

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

Tag summary

Content type

Image

Digest

Size

393.8 MB

Last updated

about 8 years ago

docker pull yexianyi/kafka