Guest User

Untitled

a guest
Nov 12th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. KafkaServer {
  2. org.apache.kafka.common.security.plain.PlainLoginModule required
  3. username="admin"
  4. password="admin-secret"
  5.  
  6. };
  7. KafkaClient {
  8. org.apache.kafka.common.security.plain.PlainLoginModule required
  9. username="admin"
  10. password="admin-secret"
  11. ;
  12. };
  13.  
  14. listeners=PLAINTEXT://0.0.0.0:443,SASL_PLAINTEXT://0.0.0.0:29093,SASL_SSL://0.0.0.0:29094
  15. advertised.listeners=PLAINTEXT://node1.app.gen.local:443,SASL_PLAINTEXT://node1.app.gen.local:29093,SASL_SSL://node1.app.gen.local:29094
  16.  
  17. authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
  18. allow.everyone.if.no.acl.found=true
  19. security.inter.broker.protocol=SASL_PLAINTEXT
  20. sasl.mechanism.inter.broker.protocol=PLAIN
  21. sasl.enabled.mechanisms=PLAIN
  22. super.users=User:admin
  23. zookeeper.set.acl=false
  24.  
  25. export KAFKA_OPTS="-Djava.security.auth.login.config=/etc/kafka/kafka_server.jaas"
  26. /u01/app/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:29093 --topic topictest1 --from-beginning --consumer.config=/etc/kafka/consumer.properties
  27.  
  28. security.protocol=SASL_PLAINTEXT
  29. sasl.mechanism=PLAIN
  30. bootstrap.servers=localhost:29093
  31.  
  32. security.protocol=SASL_PLAINTEXT
  33. sasl.mechanism=PLAIN
  34. bootstrap.servers=localhost:29093
Add Comment
Please, Sign In to add comment