Hi Team,

I am facing the issue in creating the Kafka consumer. I am giving the jaas 
config file in the build path


10:14:00,765 WARN  
[org.springframework.web.context.support.AnnotationConfigWebApplicationContext] 
(ServerService Thread Pool -- 84) Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.context.ApplicationContextException: Failed to start bean 
'org.springframework.kafka.config.internalKafkaListenerEndpointRegistry'; 
nested exception is org.apache.kafka.common.KafkaException: Failed to construct 
kafka consumer
10:14:00,789 ERROR [org.springframework.web.servlet.DispatcherServlet] 
(ServerService Thread Pool -- 84) Context initialization failed: 
org.springframework.context.ApplicationContextException: Failed to start bean 
'org.springframework.kafka.config.internalKafkaListenerEndpointRegistry'; 
nested exception is org.apache.kafka.common.KafkaException: Failed to construct 
kafka consumer
       at 
org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:176)
 [spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
       at 
org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
 [spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
       at 
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)
 [spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
       at 
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)
 [spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]

... 24 more
Caused by: org.apache.kafka.common.KafkaException: 
java.lang.IllegalArgumentException: No serviceName defined in either JAAS or 
Kafka config
       at 
org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:98)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:112)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:58)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:88) 
[kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:695) 
[kafka-clients-0.11.0.0.jar:]
       ... 36 more
Caused by: java.lang.IllegalArgumentException: No serviceName defined in either 
JAAS or Kafka config
       at 
org.apache.kafka.common.security.kerberos.KerberosLogin.getServiceName(KerberosLogin.java:298)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.common.security.kerberos.KerberosLogin.configure(KerberosLogin.java:87)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.common.security.authenticator.LoginManager.<init>(LoginManager.java:49)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.common.security.authenticator.LoginManager.acquireLoginManager(LoginManager.java:73)
 [kafka-clients-0.11.0.0.jar:]
       at 
org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:90)
 [kafka-clients-0.11.0.0.jar:]
       ... 40 more


Thanks,
Sravanthi Gottam
Medical Management Systems

[Centene logo]
7930 Clayton Rd | St Louis, MO 63117
Ext: 8099453
sravanthi.got...@centene.com<mailto:sravanthi.got...@centene.com>

CONFIDENTIALITY NOTICE: This communication contains information intended for 
the use of the individuals to whom it is addressed and may contain information 
that is privileged, confidential or exempt from other disclosure under 
applicable law. If you are not the intended recipient, you are notified that 
any disclosure, printing, copying, distribution or use of the contents is 
prohibited. If you have received this in error, please notify the sender 
immediately by telephone or by returning it by return mail and then permanently 
delete the communication from your system. Thank you.

Reply via email to