sasl认证客户端配置

消费者配置文件

bootstrap.servers=192.168.241.12:9092,192.168.241.13:9092,192.168.241.14:9092
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="username" password="passwd";
security.protocol=SASL_PLAINTEXT
sasl.mechanism=SCRAM-SHA-256
 bin/kafka-console-consumer.sh --bootstrap-server 192.168.241.12:9092,192.168.241.13:9092,192.168.241.14 --topic topicname --max-messages 1 --from-beginning --consumer.config config/consumer.properties


sasl认证客户端配置
https://www.hechunyu.com/archives/1698219224942
作者
chunyu
发布于
2023年01月22日
许可协议