
blacktop/kafka!kafka-logo

docker run -d \ --name kafka \ -p 9092:9092 \ -e KAFKA_ADVERTISED_HOST_NAME=localhost \ -e KAFKA_CREATE_TOPICS="test-topic:1:1" \ blacktop/kafka
This will create a single-node kafka broker (listening on localhost:9092), a local zookeeper instance and create the topic test-topic with 1 replication-factor and 1 partition .
You can now test your new single-node kafka broker using Shopify/sarama's kafka-console-producer and kafka-console-consumer
bash$ go get github.com/Shopify/sarama/tools/kafka-console-consumer $ go get github.com/Shopify/sarama/tools/kafka-console-producer
Now start a consumer in the background and then send some data to kafka via a producer
bash$ kafka-console-consumer --brokers=localhost:9092 --topic=test-topic & $ echo "shrinky-dinks" | kafka-console-producer --brokers=localhost:9092 --topic=test-topic
Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to file an issue
Heavily (if not entirely) influenced by <[***]>
MIT Copyright (c) 2016-2020 blacktop
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务