Reference documentation and code samples for the Google Cloud Dataproc v1 API class NodeGroupAffinity.
Node Group Affinity for clusters using sole-tenant node groups.
The Dataproc NodeGroupAffinity resource is not related to the
Dataproc [NodeGroup][google.cloud.dataproc.v1.NodeGroup] resource.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class in the Google Cloud Dataproc v1 API is used for configuring clusters to use sole-tenant node groups.\u003c/p\u003e\n"],["\u003cp\u003eVersion 5.17.0 is the latest release, and multiple versions are available, ranging from 3.1.0 to 5.17.0, with version 5.9.0 being the currently displayed version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e resource is not related to the \u003ccode\u003eNodeGroup\u003c/code\u003e resource, but rather to the sole-tenant node groups and their affinity for clusters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class has a \u003ccode\u003eNodeGroupUri\u003c/code\u003e property, which specifies the URI of the sole-tenant node group where the cluster will be created, accepting full URLs, partial URIs, or node group names.\u003c/p\u003e\n"]]],[],null,[]]