'Setting SASL callback handler in Docker for kafka cluster
I am new to docker deployment of kafka and have zookeeper configuration in zookeeper.properties as follows:
dataDir=/tmp/zookeeper
clientPort=2181
maxClientCnxns=0
admin.enableServer=false
authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
requireClientAuthScheme=sasl
jaasLoginRenew=3600000
I have below configuration in server.properties :
broker.id=0
listeners=SASL_PLAINTEXT://localhost:9092
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.mechanism.inter.broker.protocol=PLAIN
sasl.enabled.mechanisms=PLAIN
listener.name.sasl_plaintext.plain.sasl.server.callback.handler.class=\
com.insightlake.companyname.kafka.security.authentication.SimpleLXYZAuthentication
authorizer.class.name=com.insightlake.companyname.kafka.security.authorization.SimpleXYZAuthorizerNew
super.users=User:admin
This thing is working perfectly fine while running locally but when I am trying to translate the same into docker for kafka, I am confused as to what should be the exact variables for them.
I am running confluent version 6.1.0 for the same.Kindly help me out as i am stuck for it.
Thanks in advance, Utkarsh
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
