To create a Cloud Dataproc cluster in your project, fill in and execute the APIs Explorer template, below, as follows:
-
Insert your project ID (project name) in the projectID field.
-
In the Request body config.gceClusterConfig.zoneUri field, replace the "[project-id]" placeholder with the your project ID (project name).
-
The following fields are filled in for you:
-
region = The global region is special multi-region endpoint that is capable of deploying instances into any user-specified Compute Engine zone. You can also specify distinct regions.
-
Request body clusterName = "example-cluster". This is the name of the Cloud Dataproc cluster that will be created.
-
Click EXECUTE. A dialog will ask you to confirm the default https://www.googleapis.com/auth/cloud-platform scope. Click the dialog's ALLOW to send the request to the service. After less than one second (typically), the JSON response showing that the example-cluster is pending appears below the template.
-
You can confirm that the cluster is created by going to GCP Console—Clusters.
Congratulations! You've used the Google APIs Explorer to create cluster.
For more info refer to https://cloud.google.com/dataproc/docs/quickstarts/quickstart-explorer-create