How to consume published messages from the kafka (version 0.10) server which was kerberos authorized, for the authentication keytab file is being used.
I tried with the below command but no outputs were shown.
bin/kafka-console-consumer.sh --bootstrap-server :9092 --topic --from-beginning
Kerberos-enabled clusters can pose some tricky challenges at times. I've had to deal with some of these myself.
If the Kafka Cluster is Kerberos-enabled then you'll need to supply a jaas.conf file with the Kerberos details. Try following these steps(they worked for me):
Note: I've assumed that the Kafka principal and the associated keytab is already created. If not, you'll need to create these first.
I hope this helps.