Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite wird erläutert, wie Sie einen vorhandenen Dataproc-Cluster aktualisieren und löschen.
Cluster aktualisieren
Sie können einen Cluster aktualisieren, indem Sie eine Dataproc API-Anfrage clusters.patch ausgeben, den Befehl gcloud dataproc clusters update in einem lokalen Terminalfenster oder in Cloud Shell ausführen oder Clusterparameter auf dem Tab „Konfiguration“ der Seite „Clusterdetails“ für den Cluster in der Google Cloud -Konsole bearbeiten.
Die folgenden Clusterparameter können aktualisiert werden:
Anzahl der Standard-Worker-Knoten in einem Cluster – siehe Cluster skalieren
Anzahl der sekundären Worker-Knoten in einem Cluster – VMs auf Abruf
Verwendung der ordnungsgemäßen Außerbetriebnahme, um das Herunterfahren eines Workers zu steuern, nachdem dessen Jobs abgeschlossen wurden
Dataproc gibt einen ERROR_DUE_TO_UPDATE-Fehler aus, wenn ein Clusterupdatevorgang fehlschlägt. Durch diesen Fehler wird der Cluster in einen ausfallsicheren Zustand versetzt, um Datenverlust zu vermeiden. Außerdem werden weitere Clusteroperationen eingeschränkt: Jobs können weiterhin an den Cluster gesendet und der Cluster kann gelöscht werden, aber weitere Clusteraktualisierungen sind nicht zulässig.
Empfehlung: Wenn Sie für einen Cluster eine ERROR_DUE_TO_UPDATE erhalten, erstellen Sie den Cluster neu. Exportieren Sie dazu die Clusterkonfiguration, um einen neuen Cluster zu erstellen, und löschen Sie dann den fehlgeschlagenen Cluster. Wenn das Neuerstellen des Clusters fehlschlägt, wenden Sie sich an Cloud Customer Care, um Hilfe beim Wiederherstellen des Clusters in einem RUNNING-Zustand zu erhalten.
Cluster löschen
Sie können einen Cluster über die Dataproc API als HTTP- oder programmatische Anfrage (clusters.delete), über das gcloud der Google Cloud CLI in einem lokalen Terminalfenster, in Cloud Shell oder über die Google Cloud -Konsole löschen.
Verwenden Sie zum Löschen eines Clusters die Dataproc API clusters.delete.
Konsole
Öffnen Sie die Dataproc-Seite Cluster in der Google Cloud Console. Zum Auswählen des Clusters klicken Sie auf das Kästchen links neben dem Clusternamen. Klicken Sie anschließend auf Löschen, um den Cluster zu löschen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eDataproc clusters can be updated through the Dataproc API, the \u003ccode\u003egcloud\u003c/code\u003e command-line tool, or the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eUpdatable cluster parameters include the number of standard or secondary worker nodes, graceful decommissioning settings, and cluster labels.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a Dataproc cluster can be accomplished using the Dataproc API, the \u003ccode\u003egcloud\u003c/code\u003e CLI tool, or the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eCluster deletion is irreversible; once a cluster is deleted, it cannot be recovered.\u003c/p\u003e\n"]]],[],null,["This page explains how to update and delete an existing Dataproc cluster.\n\nUpdate a cluster\n\nYou can update a cluster by issuing a Dataproc API\n[clusters.patch](/dataproc/docs/reference/rest/v1/projects.regions.clusters/patch) request, running\na [gcloud dataproc clusters update](/sdk/gcloud/reference/dataproc/clusters/update)\ncommand in a local terminal window or in\n[Cloud Shell](https://console.cloud.google.com/?cloudshell=true), or by editing cluster\nparameters from the Configuration tab of the Cluster details page for the\ncluster in the [Google Cloud console](https://console.cloud.google.com/dataproc/clusters).\n\nThe following cluster parameters can be updated:\n\n- the number of standard worker nodes in a cluster---see [Scaling clusters](/dataproc/docs/concepts/scaling-clusters)\n- the number of secondary worker nodes in a cluster--- see [Preemptible VMs](/dataproc/docs/concepts/preemptible-vms)\n- whether to use [graceful decommissioning](/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) to control shutting down a worker after its jobs are completed\n- adding or deleting cluster [labels](/dataproc/docs/concepts/labels)\n\nCluster update error\n\nDataproc issues an `ERROR_DUE_TO_UPDATE` error when a cluster\nupdate operation fails. This error places the cluster in a fail-safe state to\navoid data loss, and restricts further cluster operations: jobs can continue\nto be submitted to the cluster, the cluster can be deleted, but further\ncluster update operations are not permitted.\n\nRecommendation: After receiving an `ERROR_DUE_TO_UPDATE` on a cluster,\n[recreate the cluster](/dataproc/docs/guides/recreate-cluster#recreate_and_update_a_cluster)\nby exporting the cluster configuration to create a new cluster, then delete the\nfailed cluster. If recreating the cluster fails, contact\n[Cloud Customer Care](/support) for help in restoring the cluster to a\n`RUNNING` state.\n| **Note:** A cluster can enter the `ERROR_DUE_TO_UPDATE` state if you attempt to update cluster resources through Compute Engine API operations. To update cluster resources, use [Dataproc update](/dataproc/docs/guides/manage-cluster#update_a_cluster) operations.\n\nDelete a cluster\n\nYou can delete a cluster via a Dataproc API\n[clusters.delete](/dataproc/docs/reference/rest/v1/projects.regions.clusters/delete) HTTP or programmatic request, using the Google Cloud CLI\n[gcloud](/sdk/gcloud/reference/dataproc/clusters/delete)\ncommand-line tool locally in a terminal window or in [Cloud Shell](https://console.cloud.google.com/?cloudshell=true), or from the [Google Cloud console](https://console.cloud.google.com/dataproc/clusters).\n**Deletion is permanent:** Once deleted, clusters cannot be restored. You can, however, quickly create new Dataproc clusters as you need them. \n\ngcloud command\n\nTo delete a Dataproc cluster, use the gcloud CLI\n[gcloud dataproc clusters delete](/sdk/gcloud/reference/dataproc/clusters/delete)\ncommand locally in a terminal window or in\n[Cloud Shell](https://console.cloud.google.com/?cloudshell=true). \n\n```\ngcloud dataproc clusters delete cluster-name \\\n --region=region\n```\n\nREST API\n\nUse the Dataproc\n[clusters.delete](/dataproc/docs/reference/rest/v1/projects.regions.clusters/delete)\nAPI to delete a cluster.\n\nConsole\n\nOpen the Dataproc\n[Clusters](https://console.cloud.google.com/dataproc/clusters)\npage in the Google Cloud console. Select the cluster by checking the box\nto the left of the cluster name, then Click **Delete** to\ndelete the cluster."]]