【发布时间】:2017-10-07 21:48:23
【问题描述】:
我想创建非常简单的管道,但一开始就卡住了。这是我的代码:
import apache_beam as beam
options = PipelineOptions()
google_cloud_options = options.view_as(GoogleCloudOptions)
google_cloud_options.project = 'myproject'
google_cloud_options.job_name = 'mypipe'
google_cloud_options.staging_location = 'gs://mybucket/staging'
google_cloud_options.temp_location = 'gs://mybucket/temp'
options.view_as(StandardOptions).runner = 'DataflowRunner'
产生错误:
NameError: name 'PipelineOptions' is not defined
【问题讨论】:
标签: python pipeline apache-beam dataflow