Ben Stopford created KAFKA-2883:
-----------------------------------
Summary: Improve Error Conditions in Console Consumer & Producer
Key: KAFKA-2883
URL: https://issues.apache.org/jira/browse/KAFKA-2883
Project: Kafka
Issue Type: Improvement
Reporter: Ben Stopford
As the console_consumer and console_producer are often uses when setting things
up Kafka it'd be nice if they reported a lack of connection with the server.
Here are a couple of examples with the new consumer where it's only obvious
that nothing is connected because messages don't make it from producer to
consumer. A better response would be some form of can't connect message.
Specify a closed port:
opt/kafka-trunk/bin/kafka-console-consumer.sh --bootstrap-server worker2:9099
topic test_topic --new-consumer
=> Appears to run. Isn't really connected to anything.
Specify an open port but use a different protocol:
/opt/kafka-trunk/bin/kafka-console-consumer.sh --bootstrap-server worker2:9095
--topic test_topic --new-consumer
(in this case 9095 is open using SSL)
=> Appears to run. Isn't really connected to anything.
Same is true in the console_producer, where if you type messages eventually
you will get an error reported back when they timeout.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)