我想创建一个在非默认服务帐户下运行的dataproc集群。以下内容适用于计算实例:
gcloud compute instances create instance-1 --machine-type "n1-standard-1" --zone "europe-west1-b" --scopes xxxxxxxx@yyyyyyyy.iam.gserviceaccount.com="https://www.googleapis.com/auth/cloud-platform"但是,相同的--scopes参数在创建dataproc实例时失败:
gcloud dataproc clusters create --zone "europe-west1-b" --scopes xxxxxxxx@yyyyyyyy.iam.gserviceaccount.com="https://www.googleapis.com/auth/cloud-platform" testdataproc12345错误:( 'xxxxxxxxx@yyyyyyyy.iam.gserviceaccount.com=https://www.googleapis.com/auth/cloud-platform‘)无效的服务帐户范围:gcloud.dataproc.clusters.create
是否可以在非默认服务帐户下运行dataproc?
发布于 2016-08-03 00:30:58
不幸的是,目前还无法使用常规的“作用域和元数据”-mediated auth设置来指定自定义服务帐户。但是,这是一个已知的特性请求,因此它应该在未来的Dataproc更新中可用。
同时,即使在使用Dataproc时不能禁用默认GCE服务帐户的“存储读/写”作用域的存在,也可以通过使用IAM & Admin > Service accounts页面下的"Create“选项,使Hadoop端通过键文件使用特定的服务帐户来获取服务帐户的JSON密钥文件,然后执行两项操作:
https://stackoverflow.com/questions/38688545
复制相似问题