是否可以将 Google Cloud Platform Dataflow 作业的区域更改为欧洲?
我已将管道区域设置为europe-west1-d
但我无法更改工作本身的区域。
我尝试更改管道选项中的区域,但这会导致错误,并且只有默认区域有效。
pipeline_options.view_as(GoogleCloudOptions).region = 'europe-west1'
"error": {
"code": 400,
"message": "(ff50231266257fc7): The workflow could not be created, since it was sent to an invalid or unreleased region. Please resubmit with a valid region.",
"status": "INVALID_ARGUMENT"
}
europe-west1
使用命令时列出gcloud compute regions list
是的,云数据流区域端点 https://cloud.google.com/dataflow/docs/concepts/regional-endpoints允许您将 Dataflow 作业的区域更改为欧洲。
区域端点是一项全新的云数据流功能。在发布区域端点之前,实验性region
可以指定选项但未使用。出现此错误消息的原因是region
选项是在功能发布之前指定的。
您的案例示例(欧洲):
您只需提交一份作业即可指定区域端点 https://cloud.google.com/dataflow/docs/concepts/regional-endpoints#specifying_a_regional_endpoint, (e.g. region
= europe-west1
),并且该作业将在europe-west1
地区;当您省略区域时,Cloud Dataflow 会自动从此区域中为 Dataflow 工作人员选择一个区域。
您还可以提交指定了区域端点和区域的作业(例如region
= europe-west1
and zone
= europe-west1d
),并且该作业将在europe-west1
区域,数据流工作线程在europe-west1d
zone.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)