I am using Apache kafka version 2. I am trying to implement authentication for Kafka using Username and password(SASL_PLAINTEXT).I am following below link to implement the same.
https://developer.ibm.com/hadoop/2017/04/10/kafka-security-mechanism-saslplain/
I have changed the configuration based on above url. But I am getting below error.
java.lang.IllegalArgumentException: Could not find a 'KafkaServer' or 'sasl_plaintext.KafkaServer' entry in the JAAS configuration. System property 'java.security.auth.login.config' is /usr/hdp/current/kafka-broker/config/kafka_jaas.conf
Try to export kafka_opts. export KAFKA_OPTS="-Djava.security.auth.login.config=/usr/hdp/current/kafka-broker/config/kafka_jaas.conf"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.