Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KafkaServer {
- org.apache.kafka.common.security.plain.PlainLoginModule required
- username="admin"
- password="admin-secret"
- };
- KafkaClient {
- org.apache.kafka.common.security.plain.PlainLoginModule required
- username="admin"
- password="admin-secret"
- ;
- };
- listeners=PLAINTEXT://0.0.0.0:443,SASL_PLAINTEXT://0.0.0.0:29093,SASL_SSL://0.0.0.0:29094
- advertised.listeners=PLAINTEXT://node1.app.gen.local:443,SASL_PLAINTEXT://node1.app.gen.local:29093,SASL_SSL://node1.app.gen.local:29094
- authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
- allow.everyone.if.no.acl.found=true
- security.inter.broker.protocol=SASL_PLAINTEXT
- sasl.mechanism.inter.broker.protocol=PLAIN
- sasl.enabled.mechanisms=PLAIN
- super.users=User:admin
- zookeeper.set.acl=false
- export KAFKA_OPTS="-Djava.security.auth.login.config=/etc/kafka/kafka_server.jaas"
- /u01/app/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:29093 --topic topictest1 --from-beginning --consumer.config=/etc/kafka/consumer.properties
- security.protocol=SASL_PLAINTEXT
- sasl.mechanism=PLAIN
- bootstrap.servers=localhost:29093
- security.protocol=SASL_PLAINTEXT
- sasl.mechanism=PLAIN
- bootstrap.servers=localhost:29093
Add Comment
Please, Sign In to add comment