Last active
October 16, 2019 07:17
-
-
Save adrianriobo/e87a4ac4fdcc5338df438c79d6d8c6cb to your computer and use it in GitHub Desktop.
Kafka tools related commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#List topics | |
kafka-topics --zookeeper zk01.example.com:2181 --list | |
#Get kafka offsets info from kafka internal topic with ssl configuration | |
#included formatter to translate binary data | |
kafka-console-consumer --bootstrap-server 10.180.48.138:19093 --topic __consumer_offsets \ | |
--formatter "kafka.coordinator.group.GroupMetadataManager\$OffsetsMessageFormatter" \ | |
--from-beginning --consumer-property bootstrap.servers=10.180.48.138:19093 \ | |
--consumer-property security.protocol=SSL \ | |
--consumer-property ssl.truststore.location=/etc/kafka/secrets/kafka.truststore.jks \ | |
--consumer-property ssl.truststore.password=trus_pass | |
--consumer-property ssl.keystore.location=/etc/kafka/secrets/kafka.keystore.jks \ | |
--consumer-property ssl.keystore.location=/etc/kafka/secrets/kafka.keystore.jks \ | |
--consumer-property ssl.keystore.password=keystore_pass \ | |
--consumer-property ssl.key.password=key_pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment