返回到文章

采纳

编辑于

kafka配置了ssl 生产和消费报错 WARN Bootstrap broker ip:9093 disconnected (org.apache.kafka.clients.NetworkClient)

kafka

./bin/kafka-console-consumer.sh --bootstrap-server ip:9093 --topic test --from-beginning --
consumer.config /opt/consumer.config

才用非ssl的6667端口是可以正常生产和消费数据的

consumer.config配置内容如下:

security.protocol=SSL
group.id=test-group
ssl.truststore.location=/opt/kafka.truststore
ssl.truststore.password=kafka1234567
ssl.keystore.password=kafka1234567
ssl.keystore.location=/opt/kafka.keystore
~

运行报错如下

WARN Bootstrap broker ip:9093 disconnected (org.apache.kafka.clients.NetworkClient)

实在不知哪儿出错了

求大佬指导