返回到文章

采纳

编辑于 3年前

kafka配置了sasl/plaintext无法起来

kafka

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