【问题标题】:Unknown error when trying to copy data from Azure Blob Storage尝试从 Azure Blob 存储复制数据时出现未知错误
【发布时间】:2017-08-16 02:54:35
【问题描述】:

我有以下 Azure 数据工厂设置:

链接服务:

"name": "AzureStorageLinkedService",
"properties": {
    "description": "",
    "hubName": "***",
    "type": "AzureStorage",
    "typeProperties": {
        "connectionString": "DefaultEndpointsProtocol=https;AccountName=***;AccountKey=**********;EndpointSuffix=core.windows.net"
    }
}

数据集:

输入:

{
"name": "AzureBlobDatasetTemplate",
"properties": {
    "published": false,
    "type": "AzureBlob",
    "linkedServiceName": "AzureStorageLinkedService",
    "typeProperties": {
        "folderPath": "app-insights/************/PageViews/{Slice}/{Hour}",
        "format": {
            "type": "JsonFormat"
        },
        "partitionedBy": [
            {
                "name": "Slice",
                "value": {
                    "type": "DateTime",
                    "date": "SliceStart",
                    "format": "yyyy-MM-dd"
                }
            },
            {
                "name": "Hour",
                "value": {
                    "type": "DateTime",
                    "date": "SliceStart",
                    "format": "HH"
                }
            }
        ]
    },
    "availability": {
        "frequency": "Minute",
        "interval": 15
    },
    "external": true,
    "policy": {}
}

}

输出:

{
"name": "AzureTableDatasetTemplate",
"properties": {
    "published": false,
    "type": "AzureTable",
    "linkedServiceName": "AzureStorageLinkedService",
    "typeProperties": {
        "tableName": "HelloWorld"
    },
    "availability": {
        "frequency": "Minute",
        "interval": 15
    }
}

}

管道

{
"name": "PipelineTemplate",
"properties": {
    "description": "Application Insight",
    "activities": [
        {
            "type": "Copy",
            "typeProperties": {
                "source": {
                    "type": "BlobSource"
                },
                "sink": {
                    "type": "AzureTableSink",
                    "writeBatchSize": 0,
                    "writeBatchTimeout": "00:00:00"
                }
            },
            "inputs": [
                {
                    "name": "AzureBlobDatasetTemplate"
                }
            ],
            "outputs": [
                {
                    "name": "AzureTableDatasetTemplate"
                }
            ],
            "policy": {
                "timeout": "1.00:00:00",
                "concurrency": 1,
                "retry": 3
            },
            "scheduler": {
                "frequency": "Minute",
                "interval": 15
            },
            "name": "CopyActivityTemplate"
        }
    ],
    "start": "2014-05-01T00:00:00Z",
    "end": "2018-05-01T00:00:00Z",
    "isPaused": false,
    "hubName": "datafactorypocjspi_hub",
    "pipelineMode": "Scheduled"
}

}

blob 存储中的数据来自 Application Insights 连续导出。

我的目的是让整个设置像这样工作:

  1. Application Insights 使用持续导出(已完成且正在运行)导出数据并执行 blob 存储
  2. Azure 数据工厂将数据从 Blob 存储移动到 Azure 表存储(在该过程中需要计算分区键和行键,我还没有进入该部分,因为我在复制过程中被卡住了)

使用当前设置,我所有的活动运行都停留在“等待:数据集依赖项未准备好”状态:

我能找到的唯一附加信息是活动的状态描述:上游依赖项尚未准备好。

我在这里缺少什么?似乎连接到 blob 存储时出现问题。我已经仔细检查了连接字符串,文件夹路径似乎也是按顺序排列的:

【问题讨论】:

    标签: azure azure-data-factory


    【解决方案1】:

    我之前在为大型计划窗口配置时间片时遇到过这个问题...我认为您遇到了问题,因为您有 15 分钟 时间片用于 4 年窗口!

    数据集:

    "availability": {
        "frequency": "Minute",
        "interval": 15
    

    活动:

    "start": "2014-05-01T00:00:00Z",
    "end": "2018-05-01T00:00:00Z",
    

    这是在部署时必须执行的大量配置 ADF。结果是您看到它无法开始验证上游数据集,因为它仍在处理所有切片的创建。例如。等待!

    这不是一个理想的答案,但我的建议是您将计划窗口减小到更小以测试复制过程。一旦工作,一次延长一个月,这样内部配置过程就有机会赶上。

    注意;这不仅仅是 15 分钟除以 4 年。对于每个数据集,它也是两倍。输入输出。

    希望这会有所帮助。

    【讨论】:

    • 谢谢,显然我还有很多关于 ADF 的知识,我从没想过:)我明天会更改设置并发布更新。
    • 好的,祝你好运。如果这确实是问题,我将不胜感激,并将答案标记为已接受。谢谢
    • 我慷慨的日期设置似乎用光了我在 3 月份在 Azure 上的所有开发积分 - 请期待 4 月份的更新,届时我将获得新的开发积分:)
    猜你喜欢
    • 2018-08-08
    • 2020-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-26
    • 2020-06-04
    • 2015-12-04
    • 2018-09-20
    相关资源
    最近更新 更多