Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2157

kafka-console-consumer.sh: Mismatch in CLI "usage" docs vs. Scala Option parsing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: 0.10.0.0
    • Component/s: core
    • Labels:
      None

      Description

      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:

      --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      
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                omkreddy Manikumar
                Reporter:
                tvaughan77 Thomas Vaughan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: