Using an alternate location for the Kerberos files
When using a location other than /etc for the
krb5.conf
file, add the custom path to Kafka Connect and Kerberos
environment variables.
Tip: See Default paths.
Procedure
Kerberos clients
-
Configure the path to file for Kerberos clients, such as
kinit
,klist
, andkdestroy
.Set the path to the file in theKRB5_CONFIG
environment variable:export KRB5_CONFIG="path_to_file"
Kafka Connect framework
-
Configure the path to the file for the DataStax Apache Kafka Connector.
Add the system property,
java.security.krb5.conf
, to theKAFKA_OPTS
environment variable:export KAFKA_OPTS=$KAFKA_OPTS -Djava.security.krb5.conf="path_to_file"
Note: Bothconnect-standalone
andconnect-distributed
support specifying extra JVM options through theKAFKA_OPTS
environment variable.