All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.dataproc.model.HadoopJob Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.dataproc.model;

/**
 * A Dataproc job for running Apache Hadoop MapReduce
 * (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-
 * core/MapReduceTutorial.html) jobs on Apache Hadoop YARN
 * (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class HadoopJob extends com.google.api.client.json.GenericJson { /** * Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and * tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List archiveUris; /** * Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or * -Dfoo=bar, that can be set as job properties, since a collision might occur that causes an * incorrect job submission. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List args; /** * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working * directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List fileUris; /** * Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List jarFileUris; /** * Optional. The runtime log config for job execution. * The value may be {@code null}. */ @com.google.api.client.util.Key private LoggingConfig loggingConfig; /** * The name of the driver's main class. The jar file containing the class must be in the default * CLASSPATH or specified in jar_file_uris. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mainClass; /** * The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics- * binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' * 'file:home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mainJarFileUri; /** * Optional. A mapping of property names to values, used to configure Hadoop. Properties that * conflict with values set by the Dataproc API might be overwritten. Can include properties set * in /etc/hadoop/conf-site and classes in user code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map properties; /** * Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and * tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. * @return value or {@code null} for none */ public java.util.List getArchiveUris() { return archiveUris; } /** * Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and * tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. * @param archiveUris archiveUris or {@code null} for none */ public HadoopJob setArchiveUris(java.util.List archiveUris) { this.archiveUris = archiveUris; return this; } /** * Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or * -Dfoo=bar, that can be set as job properties, since a collision might occur that causes an * incorrect job submission. * @return value or {@code null} for none */ public java.util.List getArgs() { return args; } /** * Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or * -Dfoo=bar, that can be set as job properties, since a collision might occur that causes an * incorrect job submission. * @param args args or {@code null} for none */ public HadoopJob setArgs(java.util.List args) { this.args = args; return this; } /** * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working * directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. * @return value or {@code null} for none */ public java.util.List getFileUris() { return fileUris; } /** * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working * directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. * @param fileUris fileUris or {@code null} for none */ public HadoopJob setFileUris(java.util.List fileUris) { this.fileUris = fileUris; return this; } /** * Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. * @return value or {@code null} for none */ public java.util.List getJarFileUris() { return jarFileUris; } /** * Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. * @param jarFileUris jarFileUris or {@code null} for none */ public HadoopJob setJarFileUris(java.util.List jarFileUris) { this.jarFileUris = jarFileUris; return this; } /** * Optional. The runtime log config for job execution. * @return value or {@code null} for none */ public LoggingConfig getLoggingConfig() { return loggingConfig; } /** * Optional. The runtime log config for job execution. * @param loggingConfig loggingConfig or {@code null} for none */ public HadoopJob setLoggingConfig(LoggingConfig loggingConfig) { this.loggingConfig = loggingConfig; return this; } /** * The name of the driver's main class. The jar file containing the class must be in the default * CLASSPATH or specified in jar_file_uris. * @return value or {@code null} for none */ public java.lang.String getMainClass() { return mainClass; } /** * The name of the driver's main class. The jar file containing the class must be in the default * CLASSPATH or specified in jar_file_uris. * @param mainClass mainClass or {@code null} for none */ public HadoopJob setMainClass(java.lang.String mainClass) { this.mainClass = mainClass; return this; } /** * The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics- * binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' * 'file:home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' * @return value or {@code null} for none */ public java.lang.String getMainJarFileUri() { return mainJarFileUri; } /** * The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics- * binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' * 'file:home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' * @param mainJarFileUri mainJarFileUri or {@code null} for none */ public HadoopJob setMainJarFileUri(java.lang.String mainJarFileUri) { this.mainJarFileUri = mainJarFileUri; return this; } /** * Optional. A mapping of property names to values, used to configure Hadoop. Properties that * conflict with values set by the Dataproc API might be overwritten. Can include properties set * in /etc/hadoop/conf-site and classes in user code. * @return value or {@code null} for none */ public java.util.Map getProperties() { return properties; } /** * Optional. A mapping of property names to values, used to configure Hadoop. Properties that * conflict with values set by the Dataproc API might be overwritten. Can include properties set * in /etc/hadoop/conf-site and classes in user code. * @param properties properties or {@code null} for none */ public HadoopJob setProperties(java.util.Map properties) { this.properties = properties; return this; } @Override public HadoopJob set(String fieldName, Object value) { return (HadoopJob) super.set(fieldName, value); } @Override public HadoopJob clone() { return (HadoopJob) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy