Docker ZooKeeper ,Kafka 配置

1、pull zookeeper and kafka,采用yml

2、如果kafka,zookeeper不能正常启动,docker logs  【containerId】 可查看日志

3、进入kafka 容器。

黄色涂部分为容器名称

4、之后按照参考链接,如下

(1)建主题

(2)发消息

(3)收消息

参照:https://www.jianshu.com/p/da54e9cee038

猜你喜欢

转载自www.cnblogs.com/swottt/p/12894469.html