The characters for the first dash in both --max-messages and --print-offsets doesn't look like a standard '-', is it possible those options simply aren't being parsed correctly?
-Ewen On Tue, Mar 8, 2016 at 12:26 AM, Anishek Agarwal <anis...@gmail.com> wrote: > Hello > > following doc @ > > https://cwiki.apache.org/confluence/display/KAFKA/System+Tools#SystemTools-SimpleConsumerShell > > i tried to print messages using the command > > ./kafka-run-class.sh kafka.tools.SimpleConsumerShell —-max-messages 1 > --no-wait-at-logend —-print-offsets --partition 17 --offset 76446478 > --topic aTopicIAmInterestedIn --broker-list [list of brokers] > > it just keeps printing messages, it does not honour the max-messages 1, > also there is no offset printed even though print-offsets option is > provided. > > the kafka server is on 0.8.2.2 and we have 4 brokers. > > can someone please help as to what is that i am missing. > > thanks > anishek > -- Thanks, Ewen