[ 
https://issues.apache.org/jira/browse/KAFKA-3132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113143#comment-15113143
 ] 

Vahid Hashemian edited comment on KAFKA-3132 at 1/22/16 9:41 PM:
-----------------------------------------------------------------

When I use the lowercase "plaintext" and start the broker I get this error 
after the parameter printout:

java.lang.IllegalArgumentException: Error creating broker listeners from 
'plaintext://:9092': No enum constant 
org.apache.kafka.common.protocol.SecurityProtocol.plaintext
        at 
kafka.server.KafkaConfig.validateUniquePortAndProtocol(KafkaConfig.scala:894)
        at kafka.server.KafkaConfig.getListeners(KafkaConfig.scala:913)
        at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:866)
        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:698)
        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:695)
        at 
kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)
        at kafka.Kafka$.main(Kafka.scala:58)
        at kafka.Kafka.main(Kafka.scala)


was (Author: vahid):
When I use the lowercase "plaintext" and start the broker I get this error 
after the parameter printout:

{{java.lang.IllegalArgumentException: Error creating broker listeners from 
'plaintext://:9092': No enum constant 
org.apache.kafka.common.protocol.SecurityProtocol.plaintext
        at 
kafka.server.KafkaConfig.validateUniquePortAndProtocol(KafkaConfig.scala:894)
        at kafka.server.KafkaConfig.getListeners(KafkaConfig.scala:913)
        at kafka.server.KafkaConfig.<init>(KafkaConfig.scala:866)
        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:698)
        at kafka.server.KafkaConfig$.fromProps(KafkaConfig.scala:695)
        at 
kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:28)
        at kafka.Kafka$.main(Kafka.scala:58)
        at kafka.Kafka.main(Kafka.scala)}}

> URI scheme in "listeners" property should not be case-sensitive
> ---------------------------------------------------------------
>
>                 Key: KAFKA-3132
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3132
>             Project: Kafka
>          Issue Type: Bug
>          Components: config
>    Affects Versions: 0.9.0.0
>            Reporter: Jake Robb
>            Priority: Minor
>              Labels: newbie
>
> I configured my Kafka brokers as follows:
> {{listeners=plaintext://kafka01:9092,ssl://kafka01:9093}}
> With this config, my Kafka brokers start, print out all of the config 
> properties, and exit quietly. No errors, nothing in the log. No indication of 
> a problem whatsoever, let alone the nature of said problem.
> Then, I changed my config as follows:
> {{listeners=PLAINTEXT://kafka01:9092,SSL://kafka01:9093}}
> Now they start and run just fine.
> Per [RFC-3986|https://tools.ietf.org/html/rfc3986#section-6.2.2.1]:
> {quote}
> When a URI uses components of the generic syntax, the component
> syntax equivalence rules always apply; namely, that the scheme and
> host are case-insensitive and therefore should be normalized to
> lowercase.  For example, the URI <HTTP://www.EXAMPLE.com/> is
> equivalent to <http://www.example.com/>.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to