Accessing Kerberos enabled Kafka topics using GetKafka/PutKafka Processor
With HDF 1.1.2.1 release, HDF supports accessing Kerberos enabled kafka topics. For a stanalone NiFi node, following instructions can be used.
1. new jass file should be created with following entries.
Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="./conf/nifi.keytab"
useTicketCache=false
principal="nifi@EXAMPLE.COM”;
};
KafkaClient {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=false
renewTicket=true
serviceName="kafka"
useKeyTab=true
keyTab="./conf/nifi.keytab"
principal="nifi@EXAMPLE.COM";
};
*** Both the KafkaClient and Client configs should use the same principal and key tab ***
2. bootstrap.conf file should be changed to include following line.
java.arg.15=-Djava.security.auth.login.config=/<path>/zookeeper-jaas.conf
Restart NiFi node after changes to bootstrap.conf.
3. GetKafka/PutKafka processors should be modified to include a new property security.protocol and value for this property should be set to PLAINTEXTSASL
That's it ! Now NiFi can read from Kerberos enabled kafka topics.
Thank You @rgarcia for helping me with these configurations.

