title: How to send 1 Kafka message with a key?
body: <p>I am using this command: <code>bin/kafka-console-producer.sh --bootstrap-server url --topic Notifications --property &quot;parse.key=true&quot; --property &quot;key.separator=:&quot;</code></p>
  <p>I enter this command, and enter:</p>
  <p><code>1: {&quot;producer&quot;: 4, &quot;message&quot;: {&quot;created_date&quot;: &quot;2020-08-04 15:03:19.063196&quot;}}</code></p>
  <p>Then it immediately expects a second line. But I only want to send 1 message, so I hit enter again, and get</p>
  <p><code>org.apache.kafka.common.KafkaException: No key found on line 2: q at kafka.tools.ConsoleProducer$LineMessageReader.readMessage(ConsoleProducer.scala:289) at kafka.tools.ConsoleProducer$.main(ConsoleProducer.scala:51) at kafka.tools.ConsoleProducer.main(ConsoleProducer.scala)</code></p>