This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
Documentation for passing the cluster configuration to update_cluster #111
Labels
api: dataproc
Issues related to the googleapis/python-dataproc API.
type: docs
Improvement to the documentation for an API.
type: question
Request for information or clarification. Not an issue.
When trying to update a running cluster, you are required to pass in the cluster configuration. The documentation isn't clear on what that should be and expects you to know what the proto-buffer should be. Which creates a bit of circular problem, if you don't know what the proto-buffer is supposed to be you have no point of reference, so you won't know what to pass. We could use an example explaining how this works.
"If a dict is provided, it must be of the same form as the protobuf message Cluster"
response = client.update_cluster(project_id, region, cluster_name, cluster, update_mask)
In the meantime, can someone please explain how to this works? Ideally I'd be able to get the config from an existing cluster and then pass that with the update_mask to increase/decrease the number of workers.
The text was updated successfully, but these errors were encountered: