简体   繁体   English

从Azure数据块到Azure表存储的Connectiong

[英]Connectiong to Azure table storage from Azure databricks

I am trying to connecto to azure table storage from Databricks. 我正在尝试从Databricks连接到天蓝色的表存储。 I can't seem to find any resources that doesn't go to blob containers, but I have tried modifying it for tables. 我似乎找不到任何不包含在Blob容器中的资源,但是我尝试为表修改它。

spark.conf.set(
  "fs.azure.account.key.accountname.table.core.windows.net",
  "accountkey")

blobDirectPath = "wasbs://accountname.table.core.windows.net/TableName"

df = spark.read.parquet(blobDirectPath)

I am making an assumption for now that tables are parquet files. 我现在假设表是实木复合地板文件。 I am getting authentication errors on this code now. 我现在在此代码上收到身份验证错误。

According to my research, Azure Databricks does not support the data source of Azure table storage. 根据我的研究,Azure Databricks不支持Azure表存储的数据源。 For more details, please refer to https://docs.azuredatabricks.net/spark/latest/data-sources/index.html . 有关更多详细信息,请参阅https://docs.azuredatabricks.net/spark/latest/data-sources/index.html 在此处输入图片说明

Besides if you still want to use table storage, you can use Azure Cosmos DB Table API. 此外,如果仍然要使用表存储,则可以使用Azure Cosmos DB表API。 But they have some differences. 但是它们有一些差异。 For more details, please refer to https://docs.microsoft.com/en-us/azure/cosmos-db/faq#where-is-table-api-not-identical-with-azure-table-storage-behavior . 有关更多详细信息,请参阅https://docs.microsoft.com/zh-cn/azure/cosmos-db/faq#where-is-table-api-not-identical-with-azure-table-storage-behavior

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM