[ https://issues.apache.org/jira/browse/KAFKA-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14212527#comment-14212527 ]
Joel Koshy commented on KAFKA-313: ---------------------------------- I'm not sure if there is a strong need for this. In Linux you can use watch to repeat the command: watch -n 10 ./bin/kafka-consumer-offset-checker.sh --zookeeper <zk> --topic <topic> --group <groupid> 2> /dev/null Having an in-built loop does save the expense of spinning up a whole VM so it does not hurt to have it I guess. > Add JSON output and looping options to ConsumerOffsetChecker > ------------------------------------------------------------ > > Key: KAFKA-313 > URL: https://issues.apache.org/jira/browse/KAFKA-313 > Project: Kafka > Issue Type: Improvement > Reporter: Dave DeMaagd > Priority: Minor > Labels: newbie, patch > Fix For: 0.8.3 > > Attachments: KAFKA-313-2012032200.diff > > > Adds: > * '--loop N' - causes the program to loop forever, sleeping for up to N > seconds between loops (loop time minus collection time, unless that's less > than 0, at which point it will just run again immediately) > * '--asjson' - display as a JSON string instead of the more human readable > output format. > Neither of the above 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 above are used. Diff Attached. > Impacted files: > core/src/main/scala/kafka/tools/ConsumerOffsetChecker.scala -- This message was sent by Atlassian JIRA (v6.3.4#6332)