Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration).
Only supported on Dataproc image versions 1.2 and higher.
Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the updateMask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows:
Similarly, to change the number of preemptible workers in a cluster to 5, the updateMask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows:
Note: Currently, only the following fields can be updated:
Mask
Purpose
labels
Update labels
config.worker_config.num_instances
Resize primary worker group
config.secondary_worker_config.num_instances
Resize secondary worker group
config.autoscaling_config.policy_uri
Use, stop using, or change autoscaling policies
This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".
requestId
string
Optional. A unique ID used to identify the request. If the server receives two UpdateClusterRequests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.
It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-20 UTC."],[[["\u003cp\u003eThis document outlines the process for updating a cluster in a Google Cloud project using the Dataproc API, requiring the cluster to be in a \u003ccode\u003eRUNNING\u003c/code\u003e state.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePATCH\u003c/code\u003e HTTP request is used with a specific URL structure that includes \u003ccode\u003eprojectId\u003c/code\u003e, \u003ccode\u003eregion\u003c/code\u003e, and \u003ccode\u003eclusterName\u003c/code\u003e as required path parameters.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameters, such as \u003ccode\u003egracefulDecommissionTimeout\u003c/code\u003e, \u003ccode\u003eupdateMask\u003c/code\u003e, and \u003ccode\u003erequestId\u003c/code\u003e, offer customization options for cluster updates, including controlling node removal and specifying which fields to modify.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated \u003ccode\u003eCluster\u003c/code\u003e details, while the response body, upon successful execution, will contain an \u003ccode\u003eOperation\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this API requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]