I get an error that gs:// path can not be read by service account

≡放荡痞女 提交于 2019-12-02 04:17:15

问题


The GCS buckets I'm using for my ML jobs are encountering an access error. How do I make sure the service account has the required privileges?


回答1:


I solved this by entering following:

$ gcloud beta ml init-project

Please see below for details.

https://cloud.google.com/ml/docs/how-tos/getting-set-up




回答2:


Make sure to allow the service account to read/write to your bucket.

You will also need to change the default acl on your bucket so that new objects created in that bucket can be read by the service account.

You can do this using these two gsutil commands:

gsutil acl ch -u $SVCACCT:WRITE gs://$BUCKET/
gsutil defacl ch -u $SVCACCT:O gs://$BUCKET/



回答3:


Update:

$ gcloud ml-engine init-project

This command will add Cloud ML Engine service accounts to your project as Editors. Operation requires OWNER permissions.



来源:https://stackoverflow.com/questions/39780277/i-get-an-error-that-gs-path-can-not-be-read-by-service-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!