`kafka-avro-console-consumer` missing options

633 views
Skip to first unread message

Tianxiang Xiong

unread,
Dec 21, 2016, 5:25:46 PM12/21/16
to Confluent Platform
For Confluent Platform 3.1.1, `kafka-console-consumer` has `--partition` and `--offset` options, but `kafka-avro-console-consumer` does not.

--offset <consume offset>               The offset id to consume from (a non-
                                          negative number), or 'earliest'
                                          which means from beginning, or
                                          'latest' which means from end
                                          (default: latest)

--partition <Integer: partition>        The partition to consume from.

 Is there some technical reason for this, or has `kafka-avro-console-consumer` simply not been updated?

Ewen Cheslack-Postava

unread,
Dec 21, 2016, 10:09:59 PM12/21/16
to Confluent Platform
kafka-avro-console-consumer runs the same class as kafka-console-consumer, so their options should be identical. The avro version is just a helper that sets a few default values to work with Avro so you don't have to specify them every time you run the tool.

I just double checked and those options are listed when I run kafka-avro-console-consumer from 3.1.1. Is it possible you're running it from a different version or just overlooked the option?

-Ewen

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/f986e6ec-531e-4122-9f1d-327031016cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tianxiang Xiong

unread,
Dec 21, 2016, 10:52:29 PM12/21/16
to Confluent Platform
You're right.

I just checked another of our environments and the `kafka-avro-console-consumer` does, in fact, have these options. This indicates that the environment I was in is in a bad state.

On Wednesday, 21 December 2016 19:09:59 UTC-8, Ewen Cheslack-Postava wrote:
kafka-avro-console-consumer runs the same class as kafka-console-consumer, so their options should be identical. The avro version is just a helper that sets a few default values to work with Avro so you don't have to specify them every time you run the tool.

I just double checked and those options are listed when I run kafka-avro-console-consumer from 3.1.1. Is it possible you're running it from a different version or just overlooked the option?

-Ewen
On Wed, Dec 21, 2016 at 2:25 PM, 'Tianxiang Xiong' via Confluent Platform <confluent...@googlegroups.com> wrote:
For Confluent Platform 3.1.1, `kafka-console-consumer` has `--partition` and `--offset` options, but `kafka-avro-console-consumer` does not.

--offset <consume offset>               The offset id to consume from (a non-
                                          negative number), or 'earliest'
                                          which means from beginning, or
                                          'latest' which means from end
                                          (default: latest)

--partition <Integer: partition>        The partition to consume from.

 Is there some technical reason for this, or has `kafka-avro-console-consumer` simply not been updated?

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages