Hi Community,
I am accessing events from the enterorise Kafka topics via Windows command line 
via keytab successfully. However, I have transitioned to macbook this week and 
the same set of commands are not working in Mac. Any documentation on how to 
connect to kafka topic via macbook and using keytab file?

In windows, I first use the below environment variables for setup and then 
proceed with Kafka consuming

0) Specify where jaas.conf file is located.  Need to set an environment 
variable.

KAFKA_OPTS= 
-Djava.security.auth.login.config=C:\myfolder\Kafka_Configs\jaas.conf

KAFKA_REALM= -Djava.security.krb5.conf=krb5.conf

1) Authenticate app id to Kerberos with ticket cached on server

kinit -kt C:\myfolder\Kafka_Configs\keytab_file.keytab  
[email protected]<mailto:[email protected]>

2) Listen to a message on a topic

<path>/kafka-console-consumer.<sh/bat> --bootstrap-server  <server1:6668, 
server2:6668, etc> --topic test --from-beginning --consumer.config 
C:\myfolder\Kafka_Configs\consumer.config



Thanks,

Santohsh





Reply via email to