Kafka client gets stuck in CHECKING API VERSIONS state

If you face the problems, when: Kafka Consumer is not involving in rebalance process Kafka Consumer is not reading messages Partitions are not allocated to the Kafka Consumer, but the Consumer is subscribed to the topic Kafka Consumer connection gets stuck in CHECKING_API_VERSIONS state Kafka Producer connection gets stuck in CHECKING_API_VERSIONS state Then this is […]

READ MORE

Kafka broker Kerberos

Let’s see how we can configure Kerberos between Kafka broker and Kafka client on server side. The client side is presented here: https://mchesnavsky.tech/how-to-create-kafka-kerberos-java-consumer. <kafka_home>/conf/server.properties <kafka_home>/bin/kafka-run-class.sh Insert this: To KAFKA_OPTS: Result: /your/path/to/kafka_server_jaas.conf Kerberos between Kafka brokers is configuring with separate conf keys (which we not mentioned in this article). Above configuration is for broker-client interaction.

READ MORE

How to create Kafka Kerberos Java consumer

Suppose that you need to create Kafka Java consumer with Kerberos. The code will be: You don’t need to specify java.security.auth.login.config Java property, because we set SaslConfigs.SASL_JAAS_CONFIG property directly to the consumer. You just need to made changes in kafkaJaasConfiguration() method that necessary for your Kerberos configuration.

READ MORE