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

后端 未结 3 1231
[愿得一人]
[愿得一人] 2021-01-15 00:28

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/

相关标签:
3条回答
  • 2021-01-15 00:42

    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.

    0 讨论(0)
  • 2021-01-15 00:53

    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.

    0 讨论(0)
  • 2021-01-15 01:02

    I was working with integrating eventhub with the ELK stack and came across the same error. To solve this I found that in the settings for the Event Hub Namespace that my event hub was in I had to allow access to the VNET my ELK stack was in.

    This can be done by going to the following page: Your EventHubNamespace > Settings - Firewalls and virtual networks. Either allow access from all networks or add your specific VNET, Subnet, or IP range (for specific machines).

    This in addition to setting consumer sas policies to Manage should resolve the "Encountered error while fetching the list of EventHub PartitionIds" error.

    0 讨论(0)
提交回复
热议问题