javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user

Hi Team,

I have using logstash 8.3.3 and migirated to new Logstash 8.5.3 facing below error.

javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user

KafkaClient {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
storeKey=true
serviceName="kafka"
principal="sns-susis-@demo.com"
keyTab="home/Ijbab/conf-ahv.keytab"; //provide path for keytab
};

Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
storeKey=true
serviceName="zookeeper";
};

input{
file {
path => ["home/Ijbab/logs.log"]
sincedb_path => "home/Ijbab/app"
codec => "json"
start_position => "beginning"

	}

}

output {
stdout {codec => "json"}
kafka {
bootstrap_servers => "X.X.X.X:X.X.X.X, X.X.X.X:X.X.X.X"
topic_id => "test_mycloud"
codec => "json"
security_protocol => "SASL_PLAINTEXT"
sasl_kerberos_service_name => "kafka"
jaas_path => "home/Ijbab/app/kafka-jaas.conf"
kerberos_config =>"home/Ijbab/appkrb5.conf"
}
}

Can you please help with the fix ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.