kafka 2.11-1.1.1
server.properties文件:
advertised.listeners=SASL_PLAINTEXT ://127.0.0.1:9092
listeners=SASL_PLAINTEXT://127.0.0.1:9092
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.mechanism.inter.broker.protocol=PLAIN
sasl.enabled.mechanisms=PLAIN
错误:
Error creating broker listeners from 'SASL_PLAINTEXT ://127.0.0.1:9092': No security protocol defined for listener SASL_PLAINTEXT
参考kafka实战SASL/PLAIN认证
你的答案