我无法运行示例wordcount数据流。出现错误:
(venv) dh4@GLOW:$ python -m apache_beam.examples.wordcount \
--project "$PROJECT" --runner DataflowRunner \
--staging_location $BUCKET/staging \
--temp_location $BUCKET/tmp \
--output $BUCKET/results/output
IOError:无法上传到GCS路径gs://prova_df/staging/beamapp-dh4-1014444431-510588.1505555051.55555:访问被拒绝。请验证凭据是否有效以及您是否具有指定路径的写入权限。
但我在这个桶中没有许可问题:
(venv) dh4@GLOW:$ 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.
一些额外信息:
owner project role
上service account
。 rm ~/.gsutil/credstore
以确保没有缓存凭据。export GOOGLE_APPLICATION_CREDENTIALS