Advertisement
josephxsxn

Console Consumer/Producer Key Settings

Jul 11th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #Sending Keys with the Console Producer
  2.  
  3. ./kafka-console-producer.sh --broker-list kafka-dev01:9092 --topic test_ktable1 --property "parse.key=true" --property "key.separator=:"
  4. >8:2
  5.  
  6. #Getting Keys with the Console Consumers
  7. ./kafka-console-consumer.sh --topic test_ktable1 --bootstrap-server kafka-dev01:9092 --from-beginning --property print.key=true --property key.separator="-"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement