kafka
Mr_WuHo_O
菜鸟一只
展开
-
docker 搭建zookeepr集群和kafka集群
搭建kafka集群需要先建好zookeeper集群。我们需要三个镜像,zookeeper、wurstmeister/kafka:2.12-2.0.1和sheepkiller/kafka-manager,其中sheepkiller/kafka-manager不是必须的。下拉镜像docker pull zookeeperdocker pull wurstmeister/kafka:2....原创 2020-04-10 15:06:22 · 326 阅读 · 1 评论 -
kafka:创建主题、生产者发消息、消费者收消息
创建test主题:bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 3 --topic test生产者发送消息:./kafka-console-producer.sh --broker-list localhost:9092 --topic tes...原创 2020-04-08 15:12:30 · 456 阅读 · 0 评论 -
kafka消费者发消息失败
报错如下./kafka-console-producer.sh --broker-list 容器ip:9092 --topic testTopic>1[2020-04-01 01:42:01,606] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id ...原创 2020-04-01 10:11:38 · 3050 阅读 · 2 评论 -
kafka启动消费者失败
bash-4.4# ./kafka-console-producer.sh --broker-list kafka1:9092 --topic testTopic[2020-04-01 01:39:16,119] WARN Couldn't resolve server kafka1:9092 from bootstrap.servers as DNS resolution failed for...原创 2020-04-01 09:49:02 · 6915 阅读 · 0 评论