KAFKA-7896; Add sasl.jaas.config/sasl.mechanism props to the log4j kafka appender
This patch adds 2 props to the log4j kafka appender that get put directly
into the sasl properties passed to the producer:
- ClientJaasConf: This property sets sasl.jaas.config
- SaslMechanim: This property sets sasl.mechanism
Author: Rohan Desai <desai.p.rohan@gmail.com>
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
Closes#6216 from rodesai/add-kafka-appender-security-props
@ -63,7 +65,9 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
@@ -63,7 +65,9 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
privateStringsslKeystoreLocation;
privateStringsslKeystorePassword;
privateStringsaslKerberosServiceName;
privateStringsaslMechanism;
privateStringclientJaasConfPath;
privateStringclientJaasConf;
privateStringkerb5ConfPath;
privateIntegermaxBlockMs;
@ -210,6 +214,22 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
@@ -210,6 +214,22 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
@ -257,9 +277,15 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
@@ -257,9 +277,15 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
@ -29,8 +29,11 @@ public class MockKafkaLog4jAppender extends KafkaLog4jAppender {
@@ -29,8 +29,11 @@ public class MockKafkaLog4jAppender extends KafkaLog4jAppender {
@ -49,4 +52,8 @@ public class MockKafkaLog4jAppender extends KafkaLog4jAppender {
@@ -49,4 +52,8 @@ public class MockKafkaLog4jAppender extends KafkaLog4jAppender {