Creates a Dataproc cluster with an autoscaling policy.
Code sample
Java
Before trying this sample, follow the Java setup instructions in the Dataproc Quickstart Using Client Libraries. For more information, see the Dataproc Java API reference documentation.