Skip to content

Instantly share code, notes, and snippets.

@sandokandias
Forked from thiagoaag/kafka_command_lines.sh
Created August 13, 2018 18:26
Show Gist options
  • Save sandokandias/04d129372ddb47f4398ecebdde093bf6 to your computer and use it in GitHub Desktop.
Save sandokandias/04d129372ddb47f4398ecebdde093bf6 to your computer and use it in GitHub Desktop.
kafka_command_line_tests
# producer
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic [topic name] --property "parse.key=true" --property "key.separator=:"
# consumer
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic [topic name] --from-beginning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment