You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2023/07/05 07:20:15 UTC

[GitHub] [camel] davsclaus commented on a diff in pull request #10555: [CAMEL-19412] - camel-kafka - Add kerberos config file location prope…

davsclaus commented on code in PR #10555:
URL: https://github.com/apache/camel/pull/10555#discussion_r1252656095


##########
components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaFetchRecords.java:
##########
@@ -244,6 +244,9 @@ protected void createConsumer() {
             // this may throw an exception if something is wrong with kafka consumer
             this.consumer = kafkaConsumer.getEndpoint().getKafkaClientFactory().getConsumer(kafkaProps);
 
+            var krbLocation = kafkaConsumer.getEndpoint().getConfiguration().getKerberosConfigLocation();
+            System.setProperty("java.security.krb5.conf", krbLocation);

Review Comment:
   What happens if this option is not set, then the value is null



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org