'Connecting to on-prem kafka cluster from cloud AWS using Kerberos auth

Is it possible to connect to on-prem kafka cluster using Kerberos authentication from cloud deployed service.

When we are trying to connect we are getting below error: Caused by: KrbException: Generic error (description in e-text) (60) - Unable to locate KDC for realm "ABC.COM"

this is my jaas config: com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true storeKey=true keyTab="/pathtokeytab" principal="[email protected]" ;

Please help me if anyone has faced such error.

From this link under heading Network connectivity to Kerberos, they say its challenging to connect to on-prem kafka server from cloud deployed services. Is it unachievable or requires some other configs:

https://blog.cloudera.com/how-to-configure-clients-to-connect-to-apache-kafka-clusters-securely-part-1-kerberos/



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source