mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
gcloud: Wed Sep 28 10:27:48 UTC 2022
This commit is contained in:
parent
29683b8af4
commit
ffb9e43995
198 changed files with 4783 additions and 367 deletions
|
|
@ -59,7 +59,7 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To create a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters create my_cluster \
|
||||
$ gcloud beta dataproc clusters create my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To delete a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters delete my_cluster \
|
||||
$ gcloud beta dataproc clusters delete my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To view the details of a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters describe my_cluster \
|
||||
$ gcloud beta dataproc clusters describe my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To diagnose a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters diagnose my_cluster \
|
||||
$ gcloud beta dataproc clusters diagnose my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To export a cluster to a YAML file, run:
|
||||
|
||||
$ gcloud beta dataproc clusters export my_cluster \
|
||||
$ gcloud beta dataproc clusters export my-cluster \
|
||||
--region=us-central1 --destination=cluster.yaml
|
||||
|
||||
To export a cluster to standard output, run:
|
||||
|
||||
$ gcloud beta dataproc clusters export my_cluster \
|
||||
$ gcloud beta dataproc clusters export my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
|
|
@ -10,22 +10,22 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To create a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters create my_cluster \
|
||||
$ gcloud beta dataproc clusters create my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
To resize a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters update my_cluster \
|
||||
$ gcloud beta dataproc clusters update my-cluster \
|
||||
--region=us-central1 --num_workers 5
|
||||
|
||||
To delete a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters delete my_cluster \
|
||||
$ gcloud beta dataproc clusters delete my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
To view the details of a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters describe my_cluster \
|
||||
$ gcloud beta dataproc clusters describe my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
To see the list of all clusters, run:
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To import a cluster from a YAML file, run:
|
||||
|
||||
$ gcloud beta dataproc clusters import my_cluster \
|
||||
$ gcloud beta dataproc clusters import my-cluster \
|
||||
--region=us-central1 --source=cluster.yaml
|
||||
|
||||
To import a cluster from standard output, run:
|
||||
|
||||
$ gcloud beta dataproc clusters import my_cluster \
|
||||
$ gcloud beta dataproc clusters import my-cluster \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To start a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters start my_cluster --region=us-central1
|
||||
$ gcloud beta dataproc clusters start my-cluster --region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Cluster resource - The name of the cluster to start. The arguments in this
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To stop a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters stop my_cluster --region=us-central1
|
||||
$ gcloud beta dataproc clusters stop my-cluster --region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Cluster resource - The name of the cluster to stop. The arguments in this
|
||||
|
|
|
|||
|
|
@ -18,27 +18,27 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
To resize a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters update my_cluster \
|
||||
$ gcloud beta dataproc clusters update my-cluster \
|
||||
--region=us-central1 --num-workers=5
|
||||
|
||||
To change the number preemptible workers in a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters update my_cluster \
|
||||
$ gcloud beta dataproc clusters update my-cluster \
|
||||
--region=us-central1 --num-preemptible-workers=5
|
||||
|
||||
To add the label 'customer=acme' to a cluster, run:
|
||||
|
||||
$ gcloud beta dataproc clusters update my_cluster \
|
||||
$ gcloud beta dataproc clusters update my-cluster \
|
||||
--region=us-central1 --update-labels=customer=acme
|
||||
|
||||
To update the label 'customer=ackme' to 'customer=acme', run:
|
||||
|
||||
$ gcloud beta dataproc clusters update my_cluster \
|
||||
$ gcloud beta dataproc clusters update my-cluster \
|
||||
--region=us-central1 --update-labels=customer=acme
|
||||
|
||||
To remove the label whose key is 'customer', run:
|
||||
|
||||
$ gcloud beta dataproc clusters update my_cluster \
|
||||
$ gcloud beta dataproc clusters update my-cluster \
|
||||
--region=us-central1 --remove-labels=customer
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue