2017-10-14 43 views
0

我無法運行示例wordcount數據流。一個錯誤出現:Google DataFlow無法在存儲區中寫入

(venv) [email protected]:$ python -m apache_beam.examples.wordcount \ 
       --project "$PROJECT" --runner DataflowRunner \ 
       --staging_location $BUCKET/staging \ 
       --temp_location $BUCKET/tmp \ 
       --output $BUCKET/results/output 

IOError: Could not upload to GCS path gs://prova_df/staging/beamapp-dh4-1014444431-510588.1505555051.55555: access denied. Please verify that credentials are valid and that you have write access to the specified path.

但是我對這個桶沒有權限問題:

(venv) [email protected]:$ gsutil cp paraules.txt gs://prova_df 
Copying file://paraules.txt [Content-Type=text/plain]... 
- [1 files][ 24.0 B/ 24.0 B]             
Operation completed over 1 objects/24.0 B. 

一些額外的信息:

  • 我可以創建Web界面桶文件夾
  • 我檢查了兩次啓用的API,都似乎正確。
  • 我有owner project roleservice account
  • I rm ~/.gsutil/credstore確保沒有緩存憑證。
  • 我正在使用json export GOOGLE_APPLICATION_CREDENTIALS
  • Complete stack error at pastebin保持帖子乾淨。

回答

2

寫完這個問題後,我關了筆記本電腦,然後去散步。我拍了一張章魚的照片。

enter image description here

然後我回來辦公室,重新啓​​動筆記本電腦,當我嘗試同樣沒有變化配置的任何一行都不代碼,它的工作原理沒有問題:

enter image description here

然後,看起來需要一段時間來啓用所有資源。只要有耐心,去尋找章魚(用你的相機)

相關問題