Search code examples
azure-eventhub

In Azure Eventhub receiver giving "Encountered error while fetching the list of EventHub PartitionIds" error


I am trying to implement the receiver part as per the tutorial

https://azure.microsoft.com/en-us/documentation/articles/event-hubs-java-ephjava-getstarted/

Failure while registering: com.microsoft.azure.eventprocessorhost.EPHConfigurationException:

Encountered error while fetching the list of EventHub PartitionIds

I have 16 partitions in my eventhub. But when I send the data I don't specify any partition. How do I know in which partition my data is sent to? Am I getting the above error because of all the partitions?


Solution

  • Make sure that your consumer sas policies does includes "manage" and not only "listen". I guess it has to have manage rights to be able to list the partitions.