Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add the following two options to the ConsumerGroupCommand:

  • output.-format, if specified, takes "csv" or "json" as value, sets the output format of ConsumerGroupCommand to "csv" or "json"

  • loop, if specified, takes an integer value greater than 0, keeps executing the command at an interval of that many seconds until explicitly terminated by the admin/user

  • num-iterations, if specified terminates the loop after after that many iterations

Proposed Changes

Add JSON/CSV output and looping options to ConsumerGroupCommand. Neither of the these options depend on each other (you can loop in the human readable output, or do a single shot execution with JSON output). Existing behavior/output maintained if neither of the the options are used.

 Adds following two options to ConsumerGroupCommand.

  • output.-format, if specified, takes "csv" or "json" as value, sets the output format of ConsumerGroupCommand to "csv" or "json"
  • loop, if specified, takes an integer value greater than 0, keeps executing the command at an interval of that many seconds until explicitly terminated by the admin/user

  • num-iterations, takes an integer value greater than 0, runs the command that many times at an interval specified by the loop option

Compatibility, Deprecation, and Migration Plan

ConsumerOffsetChecker will be deprecated. The work is tracked at

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyKAFKA-2301
. It will be completely dropped in 0.9.1, tracked at 
Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyKAFKA-2307
None, the old behavior will be retained.

Rejected Alternatives

None