Unable to read messages from event hub

Rohan Miskin 1 Reputation point
2020-08-18T11:00:14.43+00:00

I have multiple eventhubs in my event hub namespace. I'm unable to read messages from one of the event hub's. I tried using kafka-console-consumer and even tried using a spring cloud streams application, and none of them fetched me any message.

Command that didn't work
kafka-console-consumer.sh --bootstrap-server ns-dummy.servicebus.windows.net:9093 --topic dummy-topic --formatter kafka.tools.DefaultMessageFormatter --property print.key=true --property print.value=true --consumer.config config.properties --from-beginning

Interestingly i'm able to read messages when i'm providing the partition number in the consumer command as given below
kafka-console-consumer.sh --bootstrap-server ns-dummy.servicebus.windows.net:9093 --topic dummy-topic --formatter kafka.tools.DefaultMessageFormatter --property print.key=true --property print.value=true --consumer.config config.properties --from-beginning --partition 0

How do i resolve this issue.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
591 questions
{count} votes