Kafka
  1. Kafka
  2. KAFKA-735

Add looping and JSON output for ConsumerOffsetChecker

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      New options for kafka.tools.ConsumerOffsetChecker:
      --asjson - Json Output
      --loop N - Loop interval (in seconds, greater than 0)

      Both are optional/independent:

      --asjson w/o --loop => Output as JSON, once and terminates
      --loop w/o --asjson => Output in default tabular format, repeats on loop defined interval
      --loop w/ --asjson => Output as JSON, repeats on loop defined interval
      neither --asjson nor --loop => Current behavior, output in tabular format once and terminates

      Patch to be attached.

      1. KAFKA-735-2.patch
        9 kB
        Dave DeMaagd
      2. KAFKA-735.patch
        8 kB
        Dave DeMaagd

        Activity

        Hide
        Jun Rao added a comment -

        Sorry for the late review. This probably should be fixed in trunk. The patch no longer applies. Could you rebase? Thanks,

        Show
        Jun Rao added a comment - Sorry for the late review. This probably should be fixed in trunk. The patch no longer applies. Could you rebase? Thanks,
        Dave DeMaagd made changes -
        Labels patch
        Dave DeMaagd made changes -
        Attachment KAFKA-735-2.patch [ 12566439 ]
        Hide
        Dave DeMaagd added a comment -

        Correction (updates KAFKA-735.patch), small logic error in loop interval testing

        Show
        Dave DeMaagd added a comment - Correction (updates KAFKA-735 .patch), small logic error in loop interval testing
        Dave DeMaagd made changes -
        Field Original Value New Value
        Attachment KAFKA-735.patch [ 12566433 ]
        Dave DeMaagd created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Dave DeMaagd
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development