Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. security.inter.broker.protocol=PLAINTEXT
  2. sasl.mechanism.inter.broker.protocol=PLAIN
  3. sasl.enabled.mechanisms=PLAIN
  4. advertised.listeners=SASL_PLAINTEXT://example.com:9095,PLAINTEXT://example.com:9092
  5. listeners = SASL_PLAINTEXT://0.0.0.0:9095,PLAINTEXT://0.0.0.0:9092
  6.  
  7. from kafka import KafkaProducer
  8. producer = KafkaProducer(bootstrap_servers='example.com:9095', security_protocol="SASL_PLAINTEXT", sasl_mechanism='PLAIN', sasl_plain_username='username', sasl_plain_password='password')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement