摘要: 1.启动命令:bin/kafka-server.start.sh ./config/server.properties 2.创建主题:bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic test --partitions 2 阅读全文
posted @ 2020-07-27 17:05 掀起你的头盖骨 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 准备工作:jdk,zookeeper,kafka(一台虚拟机) 首先安装zookeeper集群 一,安装zookeeper放入虚拟机中,解压,复制三台zookeeper到/opt/zookeeper中 二,在每个zookeeper的data目录下创建myid文件,内容分别为0,1,2(记录每个服务器 阅读全文
posted @ 2020-07-27 16:51 掀起你的头盖骨 阅读(158) 评论(0) 推荐(0) 编辑