【问题标题】:Error in running Azure Data Factory Pipeline. Linked Service Reference not found运行 Azure 数据工厂管道时出错。未找到链接服务参考
【发布时间】:2018-06-10 17:56:36
【问题描述】:

我在创建 Azure 机器学习批处理执行活动以执行评分 ML 实验时遇到以下问题。请帮忙:

如果需要任何其他相关信息,请告诉我。我是新手,请帮忙

  1. 创建如下 AzureML 链接服务:

    {
    "name": "PredictionAzureML",
    "properties": {
    "typeProperties": {
    "mlEndpoint": "https://ussouthcentral.services.azureml.net/workspaces/xxxxx/jobs",
    "apiKey": "xxxxxxxx=="
    },
    "type": "AzureML"
    }
    }
    
  2. 创建的管道如下:

    {
    "name": "pipeline1",
    "properties": {
    "description": "use AzureML model",
    "activities": [
    {
    "name": "MLActivity",
    "description": "description",
    "type": "AzureMLBatchExecution",
    "policy": {
    "timeout": "02:00:00",
    "retry": 1,
    "retryIntervalInSeconds": 30
    },
    "typeProperties": {
    "webServiceInput": "PredictionInputDataset",
    "webServiceOutputs": {
    "output1": "PredictionOutputDataset"
    }
    },
    "inputs": [
    {
    "name": "PredictionInputDataset"
    }
    ],
    "outputs": [
    {
    "name": "PredictionOutputDataset"
    }
    ],
    "linkedServiceName": "PredictionAzureML"
    }
    ]
    }
    }
    
  3. 得到以下错误:

     {
    "errorCode": "2109",
    "message": "'linkedservicereference' with reference name 'PredictionAzureML' can't be found.",
    "failureType": "UserError",
    "target": "MLActivity"
    }
    

【问题讨论】:

    标签: azure-data-factory azure-machine-learning-studio azure-data-factory-2


    【解决方案1】:

    我在 Data Factory v2 中得到了这个工作,如果您使用的是 v1,请见谅。

    尝试将linkedServiceName 作为对象放在typeProperties 之外的JSON 中,并使用以下结构:

    "linkedServiceName": {
      "referenceName": "PredictionAzureML",
      "type": "LinkedServiceReference"
    }
    

    希望有帮助!

    【讨论】:

    • 嗨,乔恩,我根据您的回答修改了 JSON。但现在我收到此错误:Activity MLActivity failed: Value cannot be null。参数名称:项目
    • @UtsavDatta 看起来我们取得了进展!在我看来,这个错误来自于调用你的 ML 模型。你能检查输入是否与你的模型所期望的相符吗?
    【解决方案2】:

    请在 UX 中使用“触发器”而不是“调试”。您需要先发布您的管道,然后单击“触发”按钮。 请关注this doc 更新您的有效载荷。它应该如下所示。 { "name": "AzureMLExecutionActivityTemplate", "description": "description", "type": "AzureMLBatchExecution", "linkedServiceName": { "referenceName": "AzureMLLinkedService", "type": "LinkedServiceReference" }, "typeProperties": { "webServiceInputs": { "<web service input name 1>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService1", "type": "LinkedServiceReference" }, "FilePath":"path1" }, "<web service input name 2>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService1", "type": "LinkedServiceReference" }, "FilePath":"path2" }
    }, "webServiceOutputs": { "<web service output name 1>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService2", "type": "LinkedServiceReference"
    }, "FilePath":"path3" }, "<web service output name 2>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService2", "type": "LinkedServiceReference"
    }, "FilePath":"path4" }
    }, "globalParameters": { "<Parameter 1 Name>": "<parameter value>", "<parameter 2 name>": "<parameter 2 value>" } } }

    【讨论】:

    • 是的,我在发布后使​​用了触发器,但收到此错误:Activity MLActivity failed: Value cannot be null。参数名称:项目
    • 看来你的管道负载结构不正确。我已经更新了我的答案
    猜你喜欢
    • 1970-01-01
    • 2020-09-27
    • 2020-06-29
    • 2019-02-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-17
    • 1970-01-01
    相关资源
    最近更新 更多