繁体   English   中英

Sagemaker 管道 - 无法解析管道定义

[英]Sagemaker Pipelines - Unable to parse Pipeline Definition

我正在使用 Sagemaker Pipelines 将两个连续的 ProcessingJobs 链接在一起。 调用pipeline.upsert()时出现奇怪的错误

botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the CreatePipeline operation: Unable to parse pipeline definition. Property 'null' with value 'null' is not of expected type 'String'

这是我的管道的样子:

    step_process_data = ProcessingStep(
        name='ProcessDataStep',
        processor=script_processor,
        code=os.path.join(BASE_DIR, "scripts/preprocess.py"),
        job_arguments=job_arguments
    )
    
    step_split_data = ProcessingStep(
        name='SplitDataStep',
        processor=script_processor,
        code=os.path.join(BASE_DIR, "scripts/split_data.py"),
        job_arguments=job_arguments,
        depends_on=[step_process_data]
    )
    
    pipeline = Pipeline(
        name="DataPreperationPipeline",
        steps=[step_process_data, step_split_data],
        sagemaker_session=sagemaker_session
    )

关于我做错或遗漏的事情有什么想法吗?

我遇到了同样的问题,我的job_arguments是字符串。 我会确保job_arguments中的所有项目都属于同一类型。

暂无
暂无

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

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