1.概述
2.配置kafka server端(每个broker)
vi $KAFKA_HOME/server.properties
listeners=SASL_PLAINTEXT://x-x-x-x:9092
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.enabled.mechanisms=PLAIN
sasl.mechanism.inter.broker.protocol=PLAIN
在$KAFKA_HOME路径下新建JAAS文件。
vi kafka_server_jaas.conf
KafkaServer {
org.apache.kafka.common.