1.kafka日志设置
“xxxlog" is not in the form of topic-partition or topic-partition.uniqueId-delete
提示以上错误,主要原因与zk的日志路径相同了;
2.启动命令
tar -xzf kafka_2.12-2.0.0.tgz
启动ZK:.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties &
启动KF:.\kafka212\bin\windows\kafka-server-start.bat .\kafka212\config\server.properties
3.创建 topic > .\bin\kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic auasoft
4.查看Topic .\bin\kafka-topics.sh --list --zookeeper localhost:2181
5.发送消息 .\bin\kafka-console-producer.sh --broker-list localhost:9092 --topic auasoft
.\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic auasoft
6.consumer读取消息并输出到标准输出
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
.\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic auasoft --from-beginning
7.Windows https://blog.csdn.net/shihg7/article/details/86630064
===============================================================
本人有15年以上开发经验,熟练应用Java/.net/C/ABAP/Delphi等开发工具;开发过ERP、智能工厂、大数据等,现已把相关开发技术、经验等已在分步整理并共享给每一位爱好学习的人。
主要有:各种平台架构讲解、平台架构设计详解及ERP应用平台设计原理等。
具体详见 “开发宝典”
===============================================================