【问题标题】:Databrick - Reading BLOB from Mounted filestorageDatabrick - 从挂载的文件存储中读取 BLOB
【发布时间】:2019-01-13 23:21:28
【问题描述】:

我正在使用 Azure 数据块,并运行了以下 Python 代码:

sas_token = "<my sas key>"
dbutils.fs.mount(
      source = "wasbs://<container>@<storageaccount>.blob.core.windows.net",
      mount_point = "/mnt/gl",
      extra_configs = {"fs.azure.sas.<container>.<storageaccount>.blob.core.windows.net": sas_token})

这似乎运行良好。于是我就跑了:

df = spark.read.text("/mnt/gl/glAgg_LE.csv")

这给了我错误:

shaded.databricks.org.apache.hadoop.fs.azure.AzureException: com.microsoft.azure.storage.StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

不知道我做错了什么。我很确定我的 sas 密钥是正确的。

【问题讨论】:

    标签: azure-databricks


    【解决方案1】:

    好的,如果您收到此错误 - 请仔细检查 SAS 密钥和容器名称。 原来我把它指向了错误的容器!

    【讨论】:

      猜你喜欢
      • 2012-06-16
      • 2020-06-29
      • 2017-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-01
      • 1970-01-01
      • 2021-10-18
      相关资源
      最近更新 更多