Kafka-avro-console-consumer consumes 0 messages while kafka-console-consumer consumes properly

928 views
Skip to first unread message

George @paytm.com

unread,
Dec 8, 2015, 1:20:53 PM12/8/15
to Confluent Platform
Hi,

I am using 1.0.1 release ,and I run into the problem below.

1. Kafka-avro-console-consumer shows "consumed 0 message", even if my topic has message in it, and I consume from the beginning
2. From the same node as 1), kafka-console-consumer can consume and print all messages in the topic in its binary form, as expected
3. I tried kafka rest proxy from the same node, consumer creation POST call is successful, but the consumption GET call always gives me 

{"error_code":40403,"message":"Consumer instance not found}

thrown by io.confluent.kafkarest.ConsumerManager.getConsumerInstance

4. To isolate the problem, I tried step 1) in step 3's rest proxy node, and kafka-avro-console-consumer consumes successfully.

Any idea what might go wrong? 

Thanks,

George

George @paytm.com

unread,
Dec 8, 2015, 4:21:08 PM12/8/15
to Confluent Platform
Turns out I didnt put --property schema.registry.url=SCHEMA_REGISTRY_HOST in my avro console consumer command.

IMO, the tooltip and documentation should include this piece of information. I could not find it on the website.

Jeff Hartley

unread,
Dec 8, 2015, 4:37:13 PM12/8/15
to confluent...@googlegroups.com
George,

Is the issue all resolved?

I'll file note of the need to review this in our documentation.  Thanks for bringing it to our attention.

Cheers,

Jeff

Jeff Hartley | Products | Confluent  
Download Apache Kafka and Confluent Platform: www.confluent.io/download

--
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-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/03799b01-80f9-45ac-87f1-10385d92584f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

George @paytm.com

unread,
Dec 8, 2015, 4:59:37 PM12/8/15
to Confluent Platform
It is all good now since my avro console consumer was pinging localhost:8081 (default value of schema.registry.url), while on a remote host.
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