在Azure Eventhub接收方中,“获取EventHub PartitionId列表时遇到错误"错误 [英] In Azure Eventhub reciever giving "Encountered error while fetching the list of EventHub PartitionIds" error

查看:196
本文介绍了在Azure Eventhub接收方中,“获取EventHub PartitionId列表时遇到错误"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照教程实施接收器部分

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

我的eventhub中有16个分区.但是,当我发送数据时,我没有指定任何分区.我如何知道我的数据发送到哪个分区?是否由于所有分区而出现上述错误?

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?

推荐答案

请确保您的消费者sas政策确实包括管理",而不仅仅是听". 我猜它必须具有管理权限才能列出分区.

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.

这篇关于在Azure Eventhub接收方中,“获取EventHub PartitionId列表时遇到错误"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆