Skip to content

Instantly share code, notes, and snippets.

@spacewander
Created July 27, 2020 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacewander/2188fc1f090c9f61456b3851878de4e3 to your computer and use it in GitHub Desktop.
Save spacewander/2188fc1f090c9f61456b3851878de4e3 to your computer and use it in GitHub Desktop.
kafka Mirror Maker configure for SASL PLAIN user/password authenciation
./kafka-run-class.sh kafka.tools.MirrorMaker \
--consumer.config ../config/source.consumer.configure \
--producer.config ../config/target.producer.configure \
--num.streams 4 \
--new.consumer \
--whitelist=xxx
bootstrap.servers=ip1:port,ip2:port
group.id=MirrorMaker
security.protocol=SASL_PLAINTEXT
sasl.mechanism=PLAIN
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="bob" password="secret";
bootstrap.servers=ip1:port,ip2:port
security.protocol=SASL_PLAINTEXT
sasl.mechanism=PLAIN
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="alice" password="secret";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment