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 document provides reference documentation for the \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class within the Google Cloud Dataproc v1 API, specifically for version 5.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class is used to define affinity for clusters that utilize sole-tenant node groups, and it is not the same as the Dataproc \u003ccode\u003eNodeGroup\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class includes a \u003ccode\u003eNodeGroupUri\u003c/code\u003e property, which is a required string representing the URI of the sole-tenant node group where the cluster will reside.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is version 5.17.0, with the documentation providing a history of versioning back to version 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists all the inherited members from the \u003ccode\u003eobject\u003c/code\u003e class, as well as implemented interfaces for the \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class, and the namespaces along with assembly for the class.\u003c/p\u003e\n"]]],[],null,[]]