[
https://issues.apache.org/jira/browse/KAFKA-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519612#comment-14519612
]
Thomas Vaughan commented on KAFKA-2157:
---------------------------------------
I'm happy to submit a patch for this, but would you prefer that we change the
documentation to match the code, or change the code to match the documentation?
I've just started exploring Kafka, so I don't know if "\--zookeeper" is more
standard than "\--broker-list"...
> kafka-console-consumer.sh: Mismatch in CLI "usage" docs vs. Scala Option
> parsing
> --------------------------------------------------------------------------------
>
> Key: KAFKA-2157
> URL: https://issues.apache.org/jira/browse/KAFKA-2157
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.1.1
> Reporter: Thomas Vaughan
> Priority: Minor
>
> I built kafka-0.8.2.1 from source and noticed there's a mismatch between the
> command line "usage" help and the actual arguments expected by the
> ConsumerPerformace$ConsumerPerfConfig.class file.
> On the command line if you run "bin/kafka-console-consumer.sh" with no
> arguments it claims you need these required fields:
> {code}
> --broker-list <hostname:port,.., REQUIRED: broker info (the list of
>
> hostname:port> broker host and port for bootstrap.
> ...
> --topics <topic1,topic2..> REQUIRED: The comma separated list of
>
> topics to produce to
> {code}
> Supplying that script with those flags will cause
> joptsimple.OptionException.unrecognizedOption exceptions because what's
> really needed are "\--zookeeper" and "\--topic" (singular, not plural)
> options.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)