Peter Ableda created KAFKA-3622: ----------------------------------- Summary: Kafka throws undescriptive error message if port is missing from url Key: KAFKA-3622 URL: https://issues.apache.org/jira/browse/KAFKA-3622 Project: Kafka Issue Type: Improvement Reporter: Peter Ableda Priority: Minor
When I try to set up MirrorMaker with *bootstrap.servers* missing the port numbers from the URLs the above error is thrown: {code} Caused by: org.apache.kafka.common.config.ConfigException: Invalid url in bootstrap.servers: host-1.com at org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:44) at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:574) ... 12 more {code} This message doesn't suggest that the port number is needed in the *bootstrap.servers* configuration which causes confusion for users who try to set this up for the first time. The above *ConfigException* message should be shown: {code} Missing port in bootstrap.servers: 127.0.0.1 {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)