Question

Kafka Configuration Instance Error

While creating the Kafka configuration instance, we are getting following error:
Error connecting to Kafka. Failed to construct kafka consumer. java.lang.IllegalArgumentException: No serviceName defined in either JAAS or Kafka config. No serviceName defined in either JAAS or Kafka config

Pega and Kafka Cluster running in different servers with firewall open for ports in each server. We are using kerberos authentication.

Performed the following in Pega server -

1. Added KafkaClient in wsjass.conf
KafkaClient {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
useTicketCache=false
keyTab="kafka.keytab"
principal="kafka/fepp-cdhepj-d2.fepoc.com@FEPOC.COM";
};

2. Placed wsjass.conf in Pega server in location /usr/WebSphere9/AppServer/profiles/Node01/properties/wsjaas.conf

3. Passed JAAS file location as a JVM parameter in Pega - Djava.security.auth.login.config = /usr/WebSphere9/AppServer/profiles/Node01/properties/wsjaas.conf

Please let me know what else must be done or if any corrections to be made.

Comments

Keep up to date on this post and subscribe to comments