nginx安装kafka插件后,启动nginx报错

nginx安装kafka插件后,启动nginx报错

问题描述:

[root@hdp-06 logs]# vi error.log
%5|1629888230.924|CONFWARN|rdkafka#producer-1| [thrd:app]: No bootstrap.servers configured: client will not be able to connect to Kafka cluster
%6|1629888230.939|FAIL|rdkafka#producer-1| [thrd:192.168.63.13:9092/bootstrap]: 192.168.63.13:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 1ms in state APIVERSION_QUERY)
%6|1629888231.151|FAIL|rdkafka#producer-1| [thrd:192.168.63.13:9092/bootstrap]: 192.168.63.13:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 1ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)
%6|1629888231.936|FAIL|rdkafka#producer-1| [thrd:192.168.63.15:9092/bootstrap]: 192.168.63.15:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 2ms in state APIVERSION_QUERY)
%6|1629888232.211|FAIL|rdkafka#producer-1| [thrd:192.168.63.15:9092/bootstrap]: 192.168.63.15:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 1ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)
%6|1629888232.927|FAIL|rdkafka#producer-1| [thrd:192.168.63.14:9092/bootstrap]: 192.168.63.14:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 1ms in state APIVERSION_QUERY)
%3|1629888232.927|ERROR|rdkafka#producer-1| [thrd:192.168.63.14:9092/bootstrap]: 3/3 brokers are down
%6|1629888233.110|FAIL|rdkafka#producer-1| [thrd:192.168.63.14:9092/bootstrap]: 192.168.63.14:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 1ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)

你看第二行,已经告诉你异常了。“Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 1ms in state APIVERSION_QUERY)”
是kafka不通,让你确认是不是安全协议的配置问题。你确认一下有没有用配置SSL,还有就是版本是否匹配。