Last active
June 12, 2024 16:31
-
-
Save mostafa-asg/a92d37af3635ee5a4b65568a2f24192b to your computer and use it in GitHub Desktop.
Print key of records in kafka-console-consumer
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
use --property print.key=true | |
Example : ./kafka-console-consumer.sh --bootstrap-server <BROKERS_ADDRESS> --topic <YOUR_TOPIC> --property print.key=true |
Thanks @qiujiangkun, applied.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How there should be
--bootstrap-server
, no--zookeeper
anymore