-
Notifications
You must be signed in to change notification settings - Fork 0
012. CLI. Producer.
Rinat Zalyaletdinov edited this page Feb 4, 2019
·
1 revision
-
Produce messages
- $ kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic <topic_name>
-
Produce messages with acknowledgements
- $ kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic <topic_name> --producer-property acks=<0, 1, or all>
- If do producing to not existed topic then this new topic will be created with default configurations that NOT RECOMMENDED. CREATING TOPICS BY HAND IS THE BEST PRACTICE.