In Azure Eventhub reciever giving “Encountered error while fetching the list of EventHub PartitionIds” error

*爱你&永不变心* 提交于 2020-01-23 17:50:47

问题


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?


回答1:


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.




回答2:


Ideally - EPH should work with "Listen"-only Claims. Right now we have a bug in EventProcessorHost client-code as a result of which - it needs "Manage" claims. We are working on it.

The error "Encountered error while fetching the list of EventHub PartitionIds" is generic and Thrown at PartitionManager, while querying for Partitions. You ran into one of the exceptions in the below catch block. Please indicate inner-exception for completeness (SEO) & faster resolution.

catch(XPathExpressionException|ParserConfigurationException|IOException|InvalidKeyException|NoSuchAlgorithmException|URISyntaxException|SAXException exception)
{
    throw new EPHConfigurationException("Encountered error while fetching the list of EventHub PartitionIds", exception);
}

EDIT:

this issue is fixed in version 0.7.7.



来源:https://stackoverflow.com/questions/38505786/in-azure-eventhub-reciever-giving-encountered-error-while-fetching-the-list-of

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!