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

misleading kafka-console-consumer.sh --property option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      So I ran into this a long time ago and only just now remembered to document it:

      kafka-console-consumer.sh takes a --property option, but this option is just an argument for the message formatter. I've had ~10 users ask why --property wasn't properly applying their consumer configuration key-value pairs. The tool doesn't provide a description for --property, either. I know in the past, the user was able to provide all consumer configurations from the command line instead of from a file, so it's pretty understandable why the mistake would be made.

      Some solutions are:
      1. just add a description to --property to the existing tool. It's not ideal because the "property" name is still there, but it seems unlikely to break existing users.
      2. fix the existing kafka-console-consumer option name. This breaks existing users so probably not okay.
      3. make KAFKA-2015 actually a brand new console consumer with a more accurate option name like --formatter-arg or --formatter-args. This won't break existing users.

      Attachments

        Activity

          People

            Unassigned Unassigned
            onurkaraman Onur Karaman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: