Skip navigation links

Package com.google.cloud.dataproc.v1beta2

A client to Google Cloud Dataproc API.

See: Description

Package com.google.cloud.dataproc.v1beta2 Description

A client to Google Cloud Dataproc API.

The interfaces provided are listed below, along with usage samples.

======================= ClusterControllerClient =======================

Service Description: The ClusterControllerService provides methods to manage clusters of Compute Engine instances.

Sample for ClusterControllerClient:

 
 try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
   String projectId = "";
   String region = "";
   String clusterName = "";
   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
 }
 
 
=================== JobControllerClient ===================

Service Description: The JobController provides methods to manage jobs.

Sample for JobControllerClient:

 
 try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
   String projectId = "";
   String region = "";
   Job job = Job.newBuilder().build();
   Job response = jobControllerClient.submitJob(projectId, region, job);
 }
 
 
============================= WorkflowTemplateServiceClient =============================

Service Description: The API interface for managing Workflow Templates in the Cloud Dataproc API.

Sample for WorkflowTemplateServiceClient:

 
 try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.