Description
The prompt introduced in KAFKA-2955 may be indeed helpful when a user enters messages manually but when the messages are read from a file, it's not helpful and may be really annoying.
Steps to reproduce
- Create a file with a decent number of messages (e.g. 80,000 in my case)
- Start console producer and forward the file contents to its STDIN:
$ kafka-console-producer --broker-list b1,b2,b3 --topic test < messages.txt >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ... >>>>>>>>>>>>>>
For each message the producer reads from the file, there's one > displayed polluting the output.
Expected behavior:
- If the producer can detect that the input stream is a TTY, it should not display the prompt.
- Ideally, there should be a configuration parameter to disable this explicitly.
Attachments
Issue Links
- is caused by
-
KAFKA-2955 Add Prompt to kafka-console-producer
-
- Resolved
-
- links to