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, offering reference materials and code samples.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNodeGroupAffinity\u003c/code\u003e is designed for use with clusters that utilize sole-tenant node groups, specifying the node group for cluster creation.\u003c/p\u003e\n"],["\u003cp\u003eThe page details various versions of the API, ranging from 3.1.0 to the latest 5.17.0, allowing for access to documentation for any version.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e Implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNodeGroupAffinity\u003c/code\u003e contains the \u003ccode\u003eNodeGroupUri\u003c/code\u003e property, which is a required property that holds the URI for the sole-tenant node group.\u003c/p\u003e\n"]]],[],null,[]]