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

前端 未结 3 1427
小鲜肉
小鲜肉 2021-01-22 04:52

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?

3条回答
  •  无人及你
    2021-01-22 05:11

    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/
    

提交回复
热议问题