I need to develop a Python program which would act as a Kafka Consumer and do some processing based on that. I used kafka-python and it did the job fine with local testing.
However, my production environment (RHEL7) requires Kerberos authentication. Keytab file is to be used for this purpose.
I couldn't find a way to refer to this Keytab file with kafka-python (e.g.: by configuring Jaas config file in a Java Kafka Consumer).
I found confluent-kafka-python, which seems to support Kerberos authentication via a Keytab file.
Also, I read that kafka-python could be used if a Java process handles Kerberos authentication.
Which method would be the better solution?