首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >apache_beam.runners.dataflow_runner.DataflowRuntimeException:数据流管道失败:

apache_beam.runners.dataflow_runner.DataflowRuntimeException:数据流管道失败:
EN

Stack Overflow用户
提问于 2017-01-14 01:10:54
回答 1查看 774关注 0票数 2

我在Cloud中建立了Google项目,并尝试运行本教程脚本https://github.com/GoogleCloudPlatform/cloudml-samples/blob/master/flowers/sample.sh

遇到此错误:

代码语言:javascript
复制
***@***:~/git/cloudml-samples/flowers$ ./sample.sh 
Your active configuration is: [cloudshell-4691]


Using job id:  flowers_***_20170113_162148

python trainer/preprocess.py \
  --input_dict "$DICT_FILE" \
  --input_path "gs://cloud-ml-data/img/flower_photos/eval_set.csv" \
  --output_path "${GCS_PATH}/preproc/eval" \
  --cloud
WARNING:root:Using fallback coder for typehint: Any.
WARNING:root:Using fallback coder for typehint: Any.
WARNING:root:Using fallback coder for typehint: Any.
DEPRECATION: pip install --download has been deprecated and will be removed in the future. Pip now has a download command that should be used instead.
Collecting google-cloud-dataflow==0.4.4
  Using cached google-cloud-dataflow-0.4.4.zip
  Saved /tmp/tmpSoHiTi/google-cloud-dataflow-0.4.4.zip
Successfully downloaded google-cloud-dataflow
# Takes about 30 mins to preprocess everything.  We serialize the two
Traceback (most recent call last):
  File "trainer/preprocess.py", line 436, in <module>
    main(sys.argv[1:])
  File "trainer/preprocess.py", line 432, in main
    run(arg_dict)
  File "trainer/preprocess.py", line 353, in run
    p.run()
  File "/home/slalomconsultingsf/.local/lib/python2.7/site-packages/apache_beam/pipeline.py", line 159, in run
    return self.runner.run(self)
  File "/home/slalomconsultingsf/.local/lib/python2.7/site-packages/apache_beam/runners/dataflow_runner.py", line 195, in run
    % getattr(self, 'last_error_msg', None), self.result)
apache_beam.runners.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed:
(b85b0a598a3565cb): Workflow failed.

我无法从GoogleCloud数据流的误差日志那里得到任何线索。

感谢您对故障排除的任何回答和帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-01-14 01:48:26

启用Dataflow API。在Pantheon顶部搜索框中,键入"dataflow API“将带您到一个窗口,在该窗口您可以单击"Enable”。

我想这能帮你解决问题。我禁用了我的Dataflow API,并得到了与您相同的错误,然后当它重新启用时,问题就消失了。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41645750

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档