|
15 | 15 | */
|
16 | 16 |
|
17 | 17 | // [START dataproc_submit_hadoop_fs_job]
|
| 18 | + |
18 | 19 | import com.google.api.gax.longrunning.OperationFuture;
|
19 |
| -import com.google.cloud.dataproc.v1.*; |
| 20 | +import com.google.cloud.dataproc.v1.HadoopJob; |
| 21 | +import com.google.cloud.dataproc.v1.Job; |
| 22 | +import com.google.cloud.dataproc.v1.JobControllerClient; |
| 23 | +import com.google.cloud.dataproc.v1.JobControllerSettings; |
| 24 | +import com.google.cloud.dataproc.v1.JobMetadata; |
| 25 | +import com.google.cloud.dataproc.v1.JobPlacement; |
20 | 26 | import com.google.cloud.storage.Blob;
|
21 | 27 | import com.google.cloud.storage.Storage;
|
22 | 28 | import com.google.cloud.storage.StorageOptions;
|
|
28 | 34 | import java.util.regex.Matcher;
|
29 | 35 | import java.util.regex.Pattern;
|
30 | 36 |
|
31 |
| -public class SubmitHadoopFSJob { |
| 37 | +public class SubmitHadoopFsJob { |
32 | 38 |
|
33 | 39 | public static ArrayList<String> stringToList(String s) {
|
34 | 40 | return new ArrayList<>(Arrays.asList(s.split(" ")));
|
35 | 41 | }
|
36 | 42 |
|
37 |
| - public static void submitHadoopFSJob() throws IOException, InterruptedException { |
| 43 | + public static void submitHadoopFsJob() throws IOException, InterruptedException { |
38 | 44 | // TODO(developer): Replace these variables before running the sample.
|
39 | 45 | String projectId = "your-project-id";
|
40 | 46 | String region = "your-project-region";
|
41 | 47 | String clusterName = "your-cluster-name";
|
42 | 48 | String hadoopFSQuery = "your-hadoop-fs-query";
|
43 |
| - submitHadoopFSJob(projectId, region, clusterName, hadoopFSQuery); |
| 49 | + submitHadoopFsJob(projectId, region, clusterName, hadoopFSQuery); |
44 | 50 | }
|
45 | 51 |
|
46 |
| - public static void submitHadoopFSJob( |
| 52 | + public static void submitHadoopFsJob( |
47 | 53 | String projectId, String region, String clusterName, String hadoopFSQuery)
|
48 | 54 | throws IOException, InterruptedException {
|
49 | 55 | String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region);
|
|
0 commit comments