Invalid region error when using google-cloud-python API to access Dataproc
问题 I am trying to create a cluster in Dataproc using google-cloud-python library, however, when setting region = 'us-central1' I get below exception: google.api_core.exceptions.InvalidArgument: 400 Region 'us-central1' is invalid. Please see https://cloud.google.com/dataproc/docs/concepts/regional-endpoints for additional information on regional endpoints Code (based on example): #!/usr/bin/python from google.cloud import dataproc_v1 client = dataproc_v1.ClusterControllerClient() project_id =