如果网络资源处于自定义子网模式,则网络接口必须指定子网

2024-05-23 20:38:49 发布

您现在位置:Python中文网/ 问答频道 /正文

尝试使用pythonsdk运行Google数据流示例。在

我可以在本地运行:

python -m apache_beam.examples.wordcount --output OUTPUT_FILE

但是,尝试在GCP上运行时:

^{pr2}$

我得到以下错误:

apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
(9d6636d5e214c789): Workflow failed. Causes: (ab9869cb8161ec27): Error:
 Message: Invalid value for field 'resource.properties.networkInterfaces[0].subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode.
 HTTP Code: 400

我使用的是apachebeampythonsdk0.6.0

有人能帮忙吗?在


Tags: 示例outputapachegoogleerrorexampleswordcountresource