摘要:
1.启动命令:bin/kafka-server.start.sh ./config/server.properties 2.创建主题:bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic test --partitions 2 阅读全文
摘要:
准备工作:jdk,zookeeper,kafka(一台虚拟机) 首先安装zookeeper集群 一,安装zookeeper放入虚拟机中,解压,复制三台zookeeper到/opt/zookeeper中 二,在每个zookeeper的data目录下创建myid文件,内容分别为0,1,2(记录每个服务器 阅读全文