clusters
Creates, updates, deletes, gets or lists a clusters resource.
Overview
| Name | clusters |
| Type | Resource |
| Id | google.dataproc.clusters |
Fields
The following fields are returned by SELECT queries:
- projects_regions_clusters_get
- projects_regions_clusters_list
| Name | Datatype | Description |
|---|---|---|
clusterName | string | Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused. |
clusterUuid | string | Output only. A cluster UUID (Unique Universal Identifier). The service generates this value when it creates the cluster. |
config | object | Optional. The cluster config for a cluster of Compute Engine Instances. Note that the service may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified. (id: ClusterConfig) |
labels | object | Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster. |
metrics | object | Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. (id: ClusterMetrics) |
projectId | string | Required. The Google Cloud Platform project ID that the cluster belongs to. |
status | object | The status of a cluster and its instances. (id: ClusterStatus) |
statusHistory | array | Output only. The previous cluster status. |
virtualClusterConfig | object | Optional. The virtual cluster config is used when creating a cluster that does not directly control the underlying compute resources, for example, when creating a GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). the service may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified. (id: VirtualClusterConfig) |
| Name | Datatype | Description |
|---|---|---|
clusterName | string | Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused. |
clusterUuid | string | Output only. A cluster UUID (Unique Universal Identifier). The service generates this value when it creates the cluster. |
config | object | Optional. The cluster config for a cluster of Compute Engine Instances. Note that the service may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified. (id: ClusterConfig) |
labels | object | Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster. |
metrics | object | Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. (id: ClusterMetrics) |
projectId | string | Required. The Google Cloud Platform project ID that the cluster belongs to. |
status | object | The status of a cluster and its instances. (id: ClusterStatus) |
statusHistory | array | Output only. The previous cluster status. |
virtualClusterConfig | object | Optional. The virtual cluster config is used when creating a cluster that does not directly control the underlying compute resources, for example, when creating a GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). the service may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified. (id: VirtualClusterConfig) |
Methods
The following methods are available for this resource:
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
clusterName | string | |
clustersId | string | |
projectId | string | |
projectsId | string | |
region | string | |
regionsId | string | |
actionOnFailedPrimaryWorkers | string | |
clusterUuid | string | |
filter | string | |
gracefulDecommissionTimeout | string (google-duration) | |
gracefulTerminationTimeout | string (google-duration) | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- projects_regions_clusters_get
- projects_regions_clusters_list
Gets the resource representation for a cluster in a project.
SELECT
clusterName,
clusterUuid,
config,
labels,
metrics,
projectId,
status,
statusHistory,
virtualClusterConfig
FROM google.dataproc.clusters
WHERE projectId = '{{ projectId }}' -- required
AND region = '{{ region }}' -- required
AND clusterName = '{{ clusterName }}' -- required
;
Lists all regions/{region}/clusters in a project alphabetically.
SELECT
clusterName,
clusterUuid,
config,
labels,
metrics,
projectId,
status,
statusHistory,
virtualClusterConfig
FROM google.dataproc.clusters
WHERE projectId = '{{ projectId }}' -- required
AND region = '{{ region }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- projects_regions_clusters_create
- Manifest
Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
INSERT INTO google.dataproc.clusters (
data__config,
data__projectId,
data__virtualClusterConfig,
data__labels,
data__clusterName,
projectId,
region,
requestId,
actionOnFailedPrimaryWorkers
)
SELECT
'{{ config }}',
'{{ projectId }}',
'{{ virtualClusterConfig }}',
'{{ labels }}',
'{{ clusterName }}',
'{{ projectId }}',
'{{ region }}',
'{{ requestId }}',
'{{ actionOnFailedPrimaryWorkers }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: clusters
props:
- name: projectId
value: "{{ projectId }}"
description: Required parameter for the clusters resource.
- name: region
value: "{{ region }}"
description: Required parameter for the clusters resource.
- name: config
description: |
Optional. The cluster config for a cluster of Compute Engine Instances. Note that the service may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
value:
clusterType: "{{ clusterType }}"
secondaryWorkerConfig:
numInstances: {{ numInstances }}
minCpuPlatform: "{{ minCpuPlatform }}"
instanceNames:
- "{{ instanceNames }}"
diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs:
- provisionedIops: "{{ provisionedIops }}"
diskType: "{{ diskType }}"
diskSizeGb: {{ diskSizeGb }}
provisionedThroughput: "{{ provisionedThroughput }}"
managedGroupConfig:
instanceGroupManagerUri: "{{ instanceGroupManagerUri }}"
instanceTemplateName: "{{ instanceTemplateName }}"
instanceGroupManagerName: "{{ instanceGroupManagerName }}"
instanceReferences:
- publicKey: "{{ publicKey }}"
instanceName: "{{ instanceName }}"
instanceId: "{{ instanceId }}"
publicEciesKey: "{{ publicEciesKey }}"
imageUri: "{{ imageUri }}"
preemptibility: "{{ preemptibility }}"
isPreemptible: {{ isPreemptible }}
startupConfig:
requiredRegistrationFraction: {{ requiredRegistrationFraction }}
machineTypeUri: "{{ machineTypeUri }}"
minNumInstances: {{ minNumInstances }}
accelerators:
- acceleratorTypeUri: "{{ acceleratorTypeUri }}"
acceleratorCount: {{ acceleratorCount }}
instanceFlexibilityPolicy:
provisioningModelMix:
standardCapacityBase: {{ standardCapacityBase }}
standardCapacityPercentAboveBase: {{ standardCapacityPercentAboveBase }}
instanceMachineTypes: "{{ instanceMachineTypes }}"
instanceSelectionList:
- diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs: "{{ attachedDiskConfigs }}"
machineTypes: "{{ machineTypes }}"
rank: {{ rank }}
instanceSelectionResults:
- machineType: "{{ machineType }}"
vmCount: {{ vmCount }}
engine: "{{ engine }}"
diagnosticBucket: "{{ diagnosticBucket }}"
softwareConfig:
imageVersion: "{{ imageVersion }}"
properties: "{{ properties }}"
optionalComponents:
- "{{ optionalComponents }}"
encryptionConfig:
gcePdKmsKeyName: "{{ gcePdKmsKeyName }}"
kmsKey: "{{ kmsKey }}"
auxiliaryNodeGroups:
- nodeGroup:
nodeGroupConfig:
numInstances: {{ numInstances }}
minCpuPlatform: "{{ minCpuPlatform }}"
instanceNames:
- "{{ instanceNames }}"
diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs: "{{ attachedDiskConfigs }}"
managedGroupConfig:
instanceGroupManagerUri: "{{ instanceGroupManagerUri }}"
instanceTemplateName: "{{ instanceTemplateName }}"
instanceGroupManagerName: "{{ instanceGroupManagerName }}"
instanceReferences:
- publicKey: "{{ publicKey }}"
instanceName: "{{ instanceName }}"
instanceId: "{{ instanceId }}"
publicEciesKey: "{{ publicEciesKey }}"
imageUri: "{{ imageUri }}"
preemptibility: "{{ preemptibility }}"
isPreemptible: {{ isPreemptible }}
startupConfig:
requiredRegistrationFraction: {{ requiredRegistrationFraction }}
machineTypeUri: "{{ machineTypeUri }}"
minNumInstances: {{ minNumInstances }}
accelerators:
- acceleratorTypeUri: "{{ acceleratorTypeUri }}"
acceleratorCount: {{ acceleratorCount }}
instanceFlexibilityPolicy:
provisioningModelMix: "{{ provisioningModelMix }}"
instanceMachineTypes: "{{ instanceMachineTypes }}"
instanceSelectionList: "{{ instanceSelectionList }}"
instanceSelectionResults: "{{ instanceSelectionResults }}"
labels: "{{ labels }}"
roles:
- "{{ roles }}"
name: "{{ name }}"
nodeGroupId: "{{ nodeGroupId }}"
masterConfig:
numInstances: {{ numInstances }}
minCpuPlatform: "{{ minCpuPlatform }}"
instanceNames:
- "{{ instanceNames }}"
diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs:
- provisionedIops: "{{ provisionedIops }}"
diskType: "{{ diskType }}"
diskSizeGb: {{ diskSizeGb }}
provisionedThroughput: "{{ provisionedThroughput }}"
managedGroupConfig:
instanceGroupManagerUri: "{{ instanceGroupManagerUri }}"
instanceTemplateName: "{{ instanceTemplateName }}"
instanceGroupManagerName: "{{ instanceGroupManagerName }}"
instanceReferences:
- publicKey: "{{ publicKey }}"
instanceName: "{{ instanceName }}"
instanceId: "{{ instanceId }}"
publicEciesKey: "{{ publicEciesKey }}"
imageUri: "{{ imageUri }}"
preemptibility: "{{ preemptibility }}"
isPreemptible: {{ isPreemptible }}
startupConfig:
requiredRegistrationFraction: {{ requiredRegistrationFraction }}
machineTypeUri: "{{ machineTypeUri }}"
minNumInstances: {{ minNumInstances }}
accelerators:
- acceleratorTypeUri: "{{ acceleratorTypeUri }}"
acceleratorCount: {{ acceleratorCount }}
instanceFlexibilityPolicy:
provisioningModelMix:
standardCapacityBase: {{ standardCapacityBase }}
standardCapacityPercentAboveBase: {{ standardCapacityPercentAboveBase }}
instanceMachineTypes: "{{ instanceMachineTypes }}"
instanceSelectionList:
- diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs: "{{ attachedDiskConfigs }}"
machineTypes: "{{ machineTypes }}"
rank: {{ rank }}
instanceSelectionResults:
- machineType: "{{ machineType }}"
vmCount: {{ vmCount }}
securityConfig:
kerberosConfig:
keystorePasswordUri: "{{ keystorePasswordUri }}"
truststorePasswordUri: "{{ truststorePasswordUri }}"
realm: "{{ realm }}"
keystoreUri: "{{ keystoreUri }}"
keyPasswordUri: "{{ keyPasswordUri }}"
rootPrincipalPasswordUri: "{{ rootPrincipalPasswordUri }}"
tgtLifetimeHours: {{ tgtLifetimeHours }}
enableKerberos: {{ enableKerberos }}
crossRealmTrustAdminServer: "{{ crossRealmTrustAdminServer }}"
crossRealmTrustSharedPasswordUri: "{{ crossRealmTrustSharedPasswordUri }}"
kdcDbKeyUri: "{{ kdcDbKeyUri }}"
kmsKeyUri: "{{ kmsKeyUri }}"
truststoreUri: "{{ truststoreUri }}"
crossRealmTrustKdc: "{{ crossRealmTrustKdc }}"
crossRealmTrustRealm: "{{ crossRealmTrustRealm }}"
identityConfig:
userServiceAccountMapping: "{{ userServiceAccountMapping }}"
enableSsh: {{ enableSsh }}
lifecycleConfig:
autoDeleteTtl: "{{ autoDeleteTtl }}"
idleStartTime: "{{ idleStartTime }}"
autoDeleteTime: "{{ autoDeleteTime }}"
idleDeleteTtl: "{{ idleDeleteTtl }}"
idleStopTtl: "{{ idleStopTtl }}"
autoStopTime: "{{ autoStopTime }}"
autoStopTtl: "{{ autoStopTtl }}"
metastoreConfig:
dataprocMetastoreService: "{{ dataprocMetastoreService }}"
dataprocMetricConfig:
metrics:
- metricSource: "{{ metricSource }}"
metricOverrides: "{{ metricOverrides }}"
workerConfig:
numInstances: {{ numInstances }}
minCpuPlatform: "{{ minCpuPlatform }}"
instanceNames:
- "{{ instanceNames }}"
diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs:
- provisionedIops: "{{ provisionedIops }}"
diskType: "{{ diskType }}"
diskSizeGb: {{ diskSizeGb }}
provisionedThroughput: "{{ provisionedThroughput }}"
managedGroupConfig:
instanceGroupManagerUri: "{{ instanceGroupManagerUri }}"
instanceTemplateName: "{{ instanceTemplateName }}"
instanceGroupManagerName: "{{ instanceGroupManagerName }}"
instanceReferences:
- publicKey: "{{ publicKey }}"
instanceName: "{{ instanceName }}"
instanceId: "{{ instanceId }}"
publicEciesKey: "{{ publicEciesKey }}"
imageUri: "{{ imageUri }}"
preemptibility: "{{ preemptibility }}"
isPreemptible: {{ isPreemptible }}
startupConfig:
requiredRegistrationFraction: {{ requiredRegistrationFraction }}
machineTypeUri: "{{ machineTypeUri }}"
minNumInstances: {{ minNumInstances }}
accelerators:
- acceleratorTypeUri: "{{ acceleratorTypeUri }}"
acceleratorCount: {{ acceleratorCount }}
instanceFlexibilityPolicy:
provisioningModelMix:
standardCapacityBase: {{ standardCapacityBase }}
standardCapacityPercentAboveBase: {{ standardCapacityPercentAboveBase }}
instanceMachineTypes: "{{ instanceMachineTypes }}"
instanceSelectionList:
- diskConfig:
numLocalSsds: {{ numLocalSsds }}
bootDiskProvisionedIops: "{{ bootDiskProvisionedIops }}"
bootDiskType: "{{ bootDiskType }}"
bootDiskProvisionedThroughput: "{{ bootDiskProvisionedThroughput }}"
bootDiskSizeGb: {{ bootDiskSizeGb }}
localSsdInterface: "{{ localSsdInterface }}"
attachedDiskConfigs: "{{ attachedDiskConfigs }}"
machineTypes: "{{ machineTypes }}"
rank: {{ rank }}
instanceSelectionResults:
- machineType: "{{ machineType }}"
vmCount: {{ vmCount }}
endpointConfig:
enableHttpPortAccess: {{ enableHttpPortAccess }}
httpPorts: "{{ httpPorts }}"
configBucket: "{{ configBucket }}"
clusterTier: "{{ clusterTier }}"
gkeClusterConfig:
nodePoolTarget:
- roles: "{{ roles }}"
nodePool: "{{ nodePool }}"
nodePoolConfig:
locations:
- "{{ locations }}"
autoscaling:
maxNodeCount: {{ maxNodeCount }}
minNodeCount: {{ minNodeCount }}
config:
preemptible: {{ preemptible }}
minCpuPlatform: "{{ minCpuPlatform }}"
serviceAccount: "{{ serviceAccount }}"
localSsdCount: {{ localSsdCount }}
accelerators: "{{ accelerators }}"
bootDiskKmsKey: "{{ bootDiskKmsKey }}"
machineType: "{{ machineType }}"
spot: {{ spot }}
namespacedGkeDeploymentTarget:
targetGkeCluster: "{{ targetGkeCluster }}"
clusterNamespace: "{{ clusterNamespace }}"
gkeClusterTarget: "{{ gkeClusterTarget }}"
gceClusterConfig:
serviceAccountScopes:
- "{{ serviceAccountScopes }}"
nodeGroupAffinity:
nodeGroupUri: "{{ nodeGroupUri }}"
privateIpv6GoogleAccess: "{{ privateIpv6GoogleAccess }}"
networkUri: "{{ networkUri }}"
shieldedInstanceConfig:
enableIntegrityMonitoring: {{ enableIntegrityMonitoring }}
enableVtpm: {{ enableVtpm }}
enableSecureBoot: {{ enableSecureBoot }}
serviceAccount: "{{ serviceAccount }}"
metadata: "{{ metadata }}"
confidentialInstanceConfig:
enableConfidentialCompute: {{ enableConfidentialCompute }}
confidentialInstanceType: "{{ confidentialInstanceType }}"
subnetworkUri: "{{ subnetworkUri }}"
autoZoneExcludeZoneUris:
- "{{ autoZoneExcludeZoneUris }}"
internalIpOnly: {{ internalIpOnly }}
zoneUri: "{{ zoneUri }}"
tags:
- "{{ tags }}"
reservationAffinity:
consumeReservationType: "{{ consumeReservationType }}"
key: "{{ key }}"
values:
- "{{ values }}"
resourceManagerTags: "{{ resourceManagerTags }}"
tempBucket: "{{ tempBucket }}"
initializationActions:
- executableFile: "{{ executableFile }}"
executionTimeout: "{{ executionTimeout }}"
autoscalingConfig:
policyUri: "{{ policyUri }}"
- name: projectId
value: "{{ projectId }}"
description: |
Required. The Google Cloud Platform project ID that the cluster belongs to.
- name: virtualClusterConfig
description: |
Optional. The virtual cluster config is used when creating a cluster that does not directly control the underlying compute resources, for example, when creating a GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). the service may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified.
value:
auxiliaryServicesConfig:
sparkHistoryServerConfig:
dataprocCluster: "{{ dataprocCluster }}"
metastoreConfig:
dataprocMetastoreService: "{{ dataprocMetastoreService }}"
stagingBucket: "{{ stagingBucket }}"
kubernetesClusterConfig:
kubernetesNamespace: "{{ kubernetesNamespace }}"
gkeClusterConfig:
nodePoolTarget:
- roles: "{{ roles }}"
nodePool: "{{ nodePool }}"
nodePoolConfig:
locations: "{{ locations }}"
autoscaling: "{{ autoscaling }}"
config: "{{ config }}"
namespacedGkeDeploymentTarget:
targetGkeCluster: "{{ targetGkeCluster }}"
clusterNamespace: "{{ clusterNamespace }}"
gkeClusterTarget: "{{ gkeClusterTarget }}"
kubernetesSoftwareConfig:
componentVersion: "{{ componentVersion }}"
properties: "{{ properties }}"
- name: labels
value: "{{ labels }}"
description: |
Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
- name: clusterName
value: "{{ clusterName }}"
description: |
Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused.
- name: requestId
value: "{{ requestId }}"
- name: actionOnFailedPrimaryWorkers
value: "{{ actionOnFailedPrimaryWorkers }}"
UPDATE examples
- projects_regions_clusters_patch
Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a RUNNING state or an error is returned.
UPDATE google.dataproc.clusters
SET
data__config = '{{ config }}',
data__projectId = '{{ projectId }}',
data__virtualClusterConfig = '{{ virtualClusterConfig }}',
data__labels = '{{ labels }}',
data__clusterName = '{{ clusterName }}'
WHERE
projectId = '{{ projectId }}' --required
AND region = '{{ region }}' --required
AND clusterName = '{{ clusterName }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND gracefulDecommissionTimeout = '{{ gracefulDecommissionTimeout}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE examples
- projects_regions_clusters_delete
Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
DELETE FROM google.dataproc.clusters
WHERE projectId = '{{ projectId }}' --required
AND region = '{{ region }}' --required
AND clusterName = '{{ clusterName }}' --required
AND requestId = '{{ requestId }}'
AND clusterUuid = '{{ clusterUuid }}'
AND gracefulTerminationTimeout = '{{ gracefulTerminationTimeout }}'
;
Lifecycle Methods
- projects_regions_clusters_diagnose
- projects_regions_clusters_repair
- projects_regions_clusters_start
- projects_regions_clusters_stop
- projects_regions_clusters_inject_credentials
Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). After the operation completes, Operation.response contains DiagnoseClusterResults (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
EXEC google.dataproc.clusters.projects_regions_clusters_diagnose
@projectId='{{ projectId }}' --required,
@region='{{ region }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"diagnosisInterval": "{{ diagnosisInterval }}",
"jobs": "{{ jobs }}",
"yarnApplicationIds": "{{ yarnApplicationIds }}",
"tarballGcsDir": "{{ tarballGcsDir }}",
"job": "{{ job }}",
"yarnApplicationId": "{{ yarnApplicationId }}",
"tarballAccess": "{{ tarballAccess }}"
}'
;
Repairs a cluster.
EXEC google.dataproc.clusters.projects_regions_clusters_repair
@projectId='{{ projectId }}' --required,
@region='{{ region }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"requestId": "{{ requestId }}",
"nodePools": "{{ nodePools }}",
"parentOperationId": "{{ parentOperationId }}",
"dataprocSuperUser": {{ dataprocSuperUser }},
"gracefulDecommissionTimeout": "{{ gracefulDecommissionTimeout }}",
"clusterUuid": "{{ clusterUuid }}",
"cluster": "{{ cluster }}"
}'
;
Starts a cluster in a project.
EXEC google.dataproc.clusters.projects_regions_clusters_start
@projectId='{{ projectId }}' --required,
@region='{{ region }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"requestId": "{{ requestId }}",
"clusterUuid": "{{ clusterUuid }}"
}'
;
Stops a cluster in a project.
EXEC google.dataproc.clusters.projects_regions_clusters_stop
@projectId='{{ projectId }}' --required,
@region='{{ region }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"clusterUuid": "{{ clusterUuid }}",
"requestId": "{{ requestId }}"
}'
;
Inject encrypted credentials into all of the VMs in a cluster.The target cluster must be a personal auth cluster assigned to the user who is issuing the RPC.
EXEC google.dataproc.clusters.projects_regions_clusters_inject_credentials
@projectsId='{{ projectsId }}' --required,
@regionsId='{{ regionsId }}' --required,
@clustersId='{{ clustersId }}' --required
@@json=
'{
"credentialsCiphertext": "{{ credentialsCiphertext }}",
"clusterUuid": "{{ clusterUuid }}"
}'
;