kafka部署前提:需要安装jdk1.7以上版本、zookeeper
- 官网下载:http://kafka.apache.org/quickstart
- kafka配置
- 配置server.properties文件中zookeeper配置,如果集群应该怎么配置?还需要尝试
- 配置kafka集群
在bin目录下面执行
设置集群UUID:KAFKA_CLUSTER_ID="$(kafka-storage.sh random-uuid)"
设置日志:sh kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
设置完成后重启kafka:
sh kafka-server-stop.sh sh kafka-server-start.sh ../config/kraft/server.properties
标签:配置,server,----,sh,集群,xixa,kafka,properties From: https://www.cnblogs.com/pjuncool/p/17824738.html