本文介绍了在u-sql脚本中查找错误原因.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我创建了一个脚本来读取存储在blob存储中的图片,并使用Cognitive Services对其进行处理,如下所示:

ECLARE @input string = "wasb://xxx/{FileName}.JPG";

REFERENCE ASSEMBLY ImageCommon;
REFERENCE ASSEMBLY FaceSdk;
REFERENCE ASSEMBLY ImageEmotion;
REFERENCE ASSEMBLY ImageTagging;
REFERENCE ASSEMBLY ImageOcr;

@tags =
    EXTRACT FileName string,
            NumObjects int,
            Tags SQL.MAP<string, float?>
    FROM @input
    USING new Cognition.Vision.ImageTagsExtractor();

@tags_serialized =
    SELECT FileName,
           NumObjects,
           String.Join(";", Tags.Select(x => String.Format("{0}:{1}", x.Key, x.Value))) AS TagsString
    FROM @tags;

OUTPUT @tags_serialized
    TO "/tags.csv"
    USING Outputters.Csv();

但是如果失败并显示此错误:

but if fails with this error:

{

{

"jobId":"https://adlsexpecho.azuredatalakeanalytics.net/jobLink/9eb0b2c2-b8f9-458b-9be7-6313dfbbea02",
错误":{
"diagnosticCode":223346732,
严重性":错误",
"component":"Yarn",
源":系统",
" errorId":"VertexRetriedTooMany",
" message":顶点重试了太多次",
" description":"顶点SV1_Extract [0] [1]重试了24次.",
"resolution":",
" helpLink":",
" details":",
"userData":"
}
}

"jobId": "https://adlsexpecho.azuredatalakeanalytics.net/jobLink/9eb0b2c2-b8f9-458b-9be7-6313dfbbea02",
"errors": {
"diagnosticCode": 223346732,
"severity": "Error",
"component": "Yarn",
"source": "System",
"errorId": "VertexRetriedTooMany",
"message": "Vertex retried too many times",
"description": "Vertex SV1_Extract[0][1] retried 24 times.",
"resolution": "",
"helpLink": "",
"details": "",
"userData": ""
}
}

但是它没有给我任何关于错误之处的线索.重新提交工作无济于事.

but it does not give me any clue on what is wrong. Resubmitting the job does not help.

如何找出问题所在?


推荐答案


这篇关于在u-sql脚本中查找错误原因.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:44