我正在使用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密钥正确。
答案 0 :(得分:0)
好,如果出现此错误-再次检查SAS密钥和容器名称。 原来我把它指向了错误的容器!