如何在流集中使用Azure事件中心?

时间:2020-11-05 21:04:21

标签: azure streamsets

我在Azure门户中有2个事件中心。我想在流集中使用此事件中心作为源。我提到了所有配置,但遇到以下错误:

管道状态:

RUNNING_ERROR: EVENT_HUB_02 - Failed to connect : java.lang.IllegalArgumentException: Provided EventHub path in eventHubPath parameter conflicts with the path in provided EventHub connection string.

有人可以建议我吗?

1 个答案:

答案 0 :(得分:0)

您遇到了此例外-https://github.com/Azure/azure-sdk-for-java/blob/f9b688989c09882d43eb614e2c2eeaa0f6361951/sdk/eventhubs/microsoft-azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/EventProcessorHost.java#L697

确保连接字符串中的eventhub名称与为EventProcessorHost实例提供的名称相同。您可以从连接字符串中删除eventhub名称,这也可以解决故障。