0

I am trying to connect to kafka server via spring integration module with SASL config and get error

java.lang.IllegalArgumentException: Could not find a 'KafkaClient' entry in the JAAS configuration. System property 'java.security.auth.login.config' is not set

but when I construct simple consumer and poll messages everything works fine. Can someone tell me how to turn off JAAS authorization or connect via it properly. Here is my KafkaConfig.java and SaslConfiguration.java. Thanks for answer!

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245

1 Answers1

1

There is a KafkaConsumerFactory which simply can accept the same set of properties you are mentioning in you gist: https://docs.spring.io/spring-kafka/docs/2.1.10.RELEASE/reference/html/_reference.html#_receiving_messages

Artem Bilan
  • 113,505
  • 11
  • 91
  • 118