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\u003eThis webpage provides documentation for the \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class within the Google Cloud Dataproc v1 API, specifically for version 5.13.0 and other versions of the API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNodeGroupAffinity\u003c/code\u003e is used for clusters utilizing sole-tenant node groups, and it is distinct from the \u003ccode\u003eNodeGroup\u003c/code\u003e resource in Dataproc.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class includes a constructor and a \u003ccode\u003eNodeGroupUri\u003c/code\u003e property, which is required and represents the URI of a sole-tenant node group resource.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists a comprehensive range of available versions for this API, from 3.1.0 to the latest version 5.17.0.\u003c/p\u003e\n"]]],[],null,[]]