2017-01-14 4 views
2

ich ein Google Cloud-Projekt in Cloud Shell auf und versuchte, dieses Tutorial Skript auszuführen https://github.com/GoogleCloudPlatform/cloudml-samples/blob/master/flowers/sample.shapache_beam.runners.dataflow_runner.DataflowRuntimeException: Datenfluß-Pipeline fehlgeschlagen:

in diesen Fehler Ran:

***@***:~/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. 

Ich war nicht in der Lage, irgendeine Ahnung zu bekommen, wo ich falsch gemacht habe von the Error Log of GoogleCloud Dataflow

Schätzen Sie jede Antwort und Hilfe bei der Fehlersuche.

Antwort

2

Aktivieren Sie die Dataflow-API. Im obersten Suchfeld von Pantheon gelangen Sie mit "dataflow api" in ein Fenster, in dem Sie auf "API aktivieren" klicken können.

Ich denke, das wird es für Sie beheben. Ich habe meine Dataflow-API deaktiviert und den gleichen Fehler erhalten wie Sie, und als das Problem erneut aktiviert wurde, ging das Problem zurück.

+0

Nur getestet, das ist die richtige Lösung. Job läuft jetzt. Vielen Dank :-) –

Verwandte Themen