Using non-default service account in Google Cloud dataproc
问题 I'd like to create a dataproc cluster that runs under a non-default service account. The following works for a compute instance: 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" But the same --scopes argument fails when creating a dataproc instance: gcloud dataproc clusters create --zone "europe-west1-b" --scopes xxxxxxxx@yyyyyyyy.iam