簡體   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