【问题标题】:How use Eventhub and Storage SDK in python in Azure如何在 Azure 中的 python 中使用 Eventhub 和 Storage SDK
【发布时间】:2020-04-28 00:02:43
【问题描述】:

当人们想要在 python SDK 中使用 ADLS gen2 存储和事件中心时如何解决这个问题 https://github.com/Azure/azure-sdk-for-python/issues/8912

【问题讨论】:

  • 嗨 Nipun,您想使用 ADLS gen2 存储的哪个功能?能否提供代码示例?
  • 我想阅读文件。我可以为此使用 rest api,但主要对 sdk 感兴趣,因为它提供异常处理
  • 您的意思是您正在安装 azure event hub 包是 1.3.2,并且想使用最新的 blob storage sdk v12 来运行 ADLS Gen2。如果是的话,我想知道一件事,在运行ADLS Gen2的时候,和event hub没有关系吧?

标签: python azure azure-storage azure-eventhub


【解决方案1】:

如果我误解了你的问题,请纠正我。

  1. 如果你安装了azure-eventhub 1.3.2,同时你想使用最新的azure-storage-blob 12.1.0来运行ADLS Gen2(我假设你只需要运行ADLS Gen2,但与事件中心无关) .如果是这样的话,我建议你可以create a virtual environment,然后在虚拟环境中安装azure-storage-blob 12.1.0

  2. 如果你想使用最新的 azure-storage-blob 12.1.0 和 azure 事件中心,那么低版本的事件中心与 azure-storage-blob 12.1.0 不兼容,你应该使用更新版本的事件中心,例如 azure-eventhub 5.0.0

【讨论】:

  • 哦,我没有意识到 Azure-eventhub 5.0.0 已经发布了。好像是最近发布的。我接受这个作为答案
猜你喜欢
  • 2015-12-14
  • 2017-03-17
  • 2021-08-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-26
  • 2019-04-25
相关资源
最近更新 更多