Skip to content

Instantly share code, notes, and snippets.

@pradp
Created April 7, 2018 13:48
Show Gist options
  • Save pradp/a5d78b8f6984d6399875f47b459e83ef to your computer and use it in GitHub Desktop.
Save pradp/a5d78b8f6984d6399875f47b459e83ef to your computer and use it in GitHub Desktop.
Kafka server property file
broker.id={unique-number}
listeners=EXTERNAL://:9092,INTERNAL://:9093
advertised.listeners=EXTERNAL://{ELB-CNAME}:9092,INTERNAL://{my-ip}:9093
listener.security.protocol.map=INTERNAL:SASL_PLAINTEXT,EXTERNAL:SASL_PLAINTEXT
inter.broker.listener.name=INTERNAL
authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
sasl.mechanism.inter.broker.protocol=PLAIN
sasl.enabled.mechanisms=PLAIN
super.users=User:{admin-username}
zookeeper.connect={znode-a-ip}:2181,{znode-b-ip}:2181,{znode-c-ip}:2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment