最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google cloud vertex ai - How to resolve Dataset not matching template? - Stack Overflow

programmeradmin2浏览0评论

I am getting the following error

com.google.apps.framework.request.BadRequestException: [ResourceName error] Path 'output_dataset name' does not match template 'projects/{project_id_or_number=*}/locations/{location_id=*}/metadataStores/{metadata_store_id=*}/artifacts/{artifact_id=*}'.

when running Kubeflow pipelines on Vertex AI Pipelines.

My pipeline can be seen below:

from google.cloud import aiplatform
from kfp import compiler, dsl
from kfp.dsl import Dataset, Output


@dslponent(base_image="python:3.12")
def component_a(output_dataset: Output[Dataset]):

    output_dataset.name = "output_dataset name"
    output_dataset.uri = "gs://some/uri"
    output_dataset.metadata["key"] = "value"


@dsl.pipeline(name="pipeline", pipeline_root="gs://pipeline/root")
def pipeline_a():
    component_a().set_display_name("Component A")


if __name__ == "__main__":
    compiler.Compiler()pile(pipeline_func=pipeline_a, package_path="pipeline.yaml")
    aiplatform.init(project="project_id", location="location")
    job = aiplatform.PipelineJob(display_name="Pipeline", template_path="pipeline.yaml")
    job.submit(service_account="service_account")

发布评论

评论列表(0)

  1. 暂无评论