【问题标题】:How can i connect to Azure Data Lake Analysis with Azure Blob Storage如何使用 Azure Blob 存储连接到 Azure Data Lake Analysis
【发布时间】:2017-10-30 11:08:55
【问题描述】:

您好,我使用 Azure Data Lake Analysis 分析系统日志。

而且,我遇到了从 Data Lake Analysis(U-SQL) 连接 Blob 存储的问题

这个 U-SQL 显示从 blob 存储读取文件

在启动这个 U-SQL 之前,我创建了 test2 blob 存储和 testcon 容器

(并设置访问策略)

@searchlog = 
EXTRACT UserId          int, 
        Start           DateTime, 
        Region          string, 
        Query           string, 
        Duration        int, 
        Urls            string, 
        ClickedUrls     string
FROM @"wasb://testcon@test2/SearchLog.tsv"
USING Extractors.Tsv();

但我遇到了一个例外。

Error
E_STORE_USER_FAILURE

Message
Secret not found for the specified user account Cosmos Path: wasb://testcon@test2/SearchLog.tsv

我该如何解决这个问题?

【问题讨论】:

  • "test2" 是您实际的 Windows Azure Blob 存储帐户吗?见About Azure storage accounts
  • "test2" 不是真实账户。(只是示例)。但我的真实账户并没有错。我也尝试“test2.blob.core.windows.net”,结果是一样的。
  • 您的 Windows Azure Blob 存储帐户是否已在您的 Azure Data Lake Analytics 帐户中注册?从 Azure 门户转到您的 Azure Data Lake Analytics 帐户。然后单击数据源。您是否看到列出了您的存储帐户?如果不是,请单击添加数据源,然后添加您的 Windows Azure Blob 存储帐户。
  • 感谢您的帮助。我通过您的评论解决了问题。
  • 很高兴听到。我已将Registering Your Windows Azure Blob Storage account 添加到 U-SQL 语言参考中。将信息发布为答案而不是评论。

标签: azure azure-storage azure-data-lake u-sql


【解决方案1】:

确保您的 Windows Azure Blob 存储帐户已注册到您的 Azure Data Lake Analytics 帐户。我从Registering Your Windows Azure Blob Storage account复制了以下步骤。

  1. 导航到 Azure 门户并登录。
  2. 导航到您的 Azure Data Lake Analytics 帐户。
  3. 在设置下选择数据源。
  4. 验证是否列出了您的 WABS 帐户。如果是,请停在这里。如果否,请继续下一步。
  5. 点击添加数据源。
  6. 从存储类型下拉列表中选择 Azure 存储。
  7. 从选择方法下拉列表中选择选择帐户。
  8. 从 Azure 存储下拉列表中选择您的 WABS 帐户。
  9. 点击添加。

【讨论】:

    猜你喜欢
    • 2019-04-01
    • 2021-03-06
    • 2019-07-01
    • 2022-08-03
    • 2019-12-02
    • 1970-01-01
    • 2021-07-11
    • 2017-09-17
    • 1970-01-01
    相关资源
    最近更新 更多