【发布时间】:2020-07-07 19:22:07
【问题描述】:
我正在使用 apache beam DirectRunner 从 kafka 主题加载数据。我的代码如下:
conf={'bootstrap.servers':'localhost:9092'}
with beam.Pipeline() as pipeline:
(pipeline
| ReadFromKafka(consumer_config=conf,topics=['topic1'])
)
我正在使用以下命令来运行此代码:
python3 topic_to_gcs --runner DirectRunner
出现以下错误:
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'docker': 'docker'
提前致谢:)
【问题讨论】:
-
你是在 docker 容器中运行这个吗?
-
@bigbounty,否...在 gcp 计算实例(基础机器)上。
标签: python ubuntu apache-kafka apache-beam apache-beam-io