Apache kafka 如何从kafka cli访问SASL配置kafka
我有一个SASL平原配置卡夫卡,但无法使用cli连接到它,文档也不清楚。下面是我现在使用的命令Apache kafka 如何从kafka cli访问SASL配置kafka,apache-kafka,sasl,Apache Kafka,Sasl,我有一个SASL平原配置卡夫卡,但无法使用cli连接到它,文档也不清楚。下面是我现在使用的命令 bin/kafka-topics.sh --list --bootstrap-server localhost:9093 任何帮助都将不胜感激。Kafka文档中有一节详细介绍了使用SASL平原连接到集群所需的配置: 它列出了以下设置: security.protocol=SASL_SSL sasl.mechanism=PLAIN sasl.jaas.config=org.apache.kafka.c
bin/kafka-topics.sh --list --bootstrap-server localhost:9093
任何帮助都将不胜感激。Kafka文档中有一节详细介绍了使用SASL平原连接到集群所需的配置: 它列出了以下设置:
security.protocol=SASL_SSL
sasl.mechanism=PLAIN
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required \
username="alice" \
password="alice-secret";
显然,根据SSL配置,您可能需要添加一些额外的设置,请参阅
将所有这些设置放在一个文件中,然后可以在使用kafka topics.sh
时使用--command config
指定此文件。例如:
bin/kafka-topics.sh --list --bootstrap-server localhost:9093 --command-config /path/to/file.properties