简体   繁体   English

Synapse LINK 从 Azure Cosmos DB 容器加载流式数据帧

[英]Synapse LINK Load streaming DataFrame from Azure Cosmos DB container

I am trying to use feed changes on synapse, I am using synapse link to connect to cosmos,我正在尝试在突触上使用提要更改,我正在使用突触链接连接到宇宙,

dfStream = spark.readStream\
    .format("cosmos.oltp")\
    .option("spark.synapse.linkedService", "<enter linked service name>")\
    .option("spark.cosmos.container", "<enter container name>")\
    .option("spark.cosmos.changeFeed.readEnabled", "true")\
    .option("spark.cosmos.changeFeed.startFromTheBeginning", "true")\
    .option("spark.cosmos.changeFeed.checkpointLocation", "/localReadCheckpointFolder")\
    .option("spark.cosmos.changeFeed.queryName", "streamQuery")\
    .load()

But I'm getting the error below:但我收到以下错误:

Error : org.apache.hadoop.fs.azurebfs.contracts.exceptions.AbfsRestOperationException: Operation failed: "This request is not authorized to perform this operation using this permission.", 403, DELETE, https://adlsgarage7.dfs.core.windows.net/adlsgarage7/localReadCheckpointFolder/streamQuery ?错误:org.apache.hadoop.fs.azurebfs.contracts.exceptions.AbfsRestOperationException:操作失败:“此请求无权使用此权限执行此操作。”、403、DELETE、 https://adlsgarage7.dfs.core .windows.net/adlsgarage7/localReadCheckpointFolder/streamQuery

You need the permission to access as a contributor the container of the Data Lake Account that has been connected to the workspace at the time of creation.您需要作为贡献者访问创建时已连接到工作区的数据湖帐户的容器的权限。 You need Blob Storage Contributor ARM access to the account adlsgarage7 or at least the container adlsgarage7.您需要Blob Storage Contributor ARM 访问帐户 adlsgarage7 或至少容器 adlsgarage7。

You should also make sure to write the name of the linked service you connect to and the container.您还应该确保写下您连接到的链接服务和容器的名称。

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

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