Skip to main content

node_groups

Creates, updates, deletes, gets or lists a node_groups resource.

Overview

Namenode_groups
TypeResource
Idgoogle.dataproc.node_groups

Fields

NameDatatypeDescription
namestringThe Node group resource name (https://aip.dev/122).
labelsobjectOptional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.
nodeGroupConfigobjectThe config settings for Compute Engine resources in an instance group, such as a master or worker group.
rolesarrayRequired. Node group roles.

Methods

NameAccessible byRequired ParamsDescription
projects_regions_clusters_node_groups_getSELECTclustersId, nodeGroupsId, projectsId, regionsIdGets the resource representation for a node group in a cluster.
projects_regions_clusters_node_groups_createINSERTclustersId, projectsId, regionsIdCreates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
projects_regions_clusters_node_groups_repairEXECclustersId, nodeGroupsId, projectsId, regionsIdRepair nodes in a node group.
projects_regions_clusters_node_groups_resizeEXECclustersId, nodeGroupsId, projectsId, regionsIdResizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).

SELECT examples

Gets the resource representation for a node group in a cluster.

SELECT
name,
labels,
nodeGroupConfig,
roles
FROM google.dataproc.node_groups
WHERE clustersId = '{{ clustersId }}'
AND nodeGroupsId = '{{ nodeGroupsId }}'
AND projectsId = '{{ projectsId }}'
AND regionsId = '{{ regionsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new node_groups resource.

/*+ create */
INSERT INTO google.dataproc.node_groups (
clustersId,
projectsId,
regionsId,
name,
roles,
nodeGroupConfig,
labels
)
SELECT
'{{ clustersId }}',
'{{ projectsId }}',
'{{ regionsId }}',
'{{ name }}',
'{{ roles }}',
'{{ nodeGroupConfig }}',
'{{ labels }}'
;