Esta página foi traduzida pela API Cloud Translation.
Switch to English

Todas as amostras de código do Dataproc

Check job status

Checks the status of a job.

Construct a client

Constructs a Dataproc client using application default credentials.

Create a client to initiate a Dataproc workflow template

Creates a client using application default credentials to initiate a Dataproc workflow template. Use either the global or a regional endpoint.

Create autoscaling cluster

Creates a Dataproc cluster with an autoscaling policy.

Delete cluster

Deletes a Dataproc cluster.

Instantiate inline workflow template

Instantiates an inline workflow template using Cloud Client Libraries.

View in documentation

List clusters

Lists all Dataproc clusters in a project.

List clusters with detail

List all Dataproc clusters in a project, with cluster details.

Sort

An example PySpark sort job.

Sort Cloud Storage

An example PySpark job to sort the contents of a text file in Cloud Storage.

Submit hadoop fs job

Submits a Hadoop FS job to a Dataproc cluster.

Submit job

Submits a Spark job to a Dataproc cluster.

Submit Pyspark job

Submits a Pyspark job to a Dataproc cluster.