This page shows you how to use an inline Google APIs Explorer template to call the Dataproc API to create a Dataproc cluster.
For other ways to create a cluster, see:
Before you begin
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
In the Google Cloud Console, on the project selector page, select or create a Google Cloud project.
Make sure that billing is enabled for your Cloud project. Learn how to confirm that billing is enabled for your project.
- Enable the Dataproc API.
Create a cluster
Before you can run Dataproc jobs, you need to create a cluster of virtual machines to run them on. To create a Dataproc cluster in your project, fill in and execute the Google APIs Explorer Try this API template.
Click EXECUTE. The first time you run the API template, you may be asked to choose and sign into your Google account, then authorize the Google APIs Explorer to access your account. If the request is successful, the JSON response shows that cluster creation is pending.
To confirm cluster creation, open the Dataproc Clusters page in the Cloud Console. After cluster provisioning completes, the cluster's status will show as "Running".
To avoid incurring charges to your Google Cloud account for the resources used in this quickstart, follow these steps.