1、docker部署kafka
KAFKA_PORT 9092
KAFKA_ADVERTISED_HOST_NAME 10.138.130.1
KAFKA_ZOOKEEPER_CONNECT 10.138.130.1:30512
KAFKA_ADVERTISED_PORT 9092
注意:对外暴露端口
2、springboot配置文件
kafka: bootstrap-servers: 10.138.130.1:34862 consumer-group: iot-influxdb-worker #一次最大拉取的数量 max-poll-records: 1000
3、名词解释
参考:https://www.orchome.com/kafka/index
常用命令:参考https://www.cnblogs.com/dalianpai/p/13789351.html
常见错误解析:https://blog.csdn.net/gy13477001651/article/details/106502548/