public final class HadoopJob extends GeneratedMessageV3 implements HadoopJobOrBuilder
A Cloud 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).Protobuf type
google.cloud.dataproc.v1.HadoopJob
Modifier and Type | Class and Description |
---|---|
static class |
HadoopJob.Builder
A Cloud 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).
|
static class |
HadoopJob.DriverCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ARCHIVE_URIS_FIELD_NUMBER |
static int |
ARGS_FIELD_NUMBER |
static int |
FILE_URIS_FIELD_NUMBER |
static int |
JAR_FILE_URIS_FIELD_NUMBER |
static int |
LOGGING_CONFIG_FIELD_NUMBER |
static int |
MAIN_CLASS_FIELD_NUMBER |
static int |
MAIN_JAR_FILE_URI_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperties(java.lang.String key)
Optional.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArchiveUris(int index)
Optional.
|
ByteString |
getArchiveUrisBytes(int index)
Optional.
|
int |
getArchiveUrisCount()
Optional.
|
ProtocolStringList |
getArchiveUrisList()
Optional.
|
java.lang.String |
getArgs(int index)
Optional.
|
ByteString |
getArgsBytes(int index)
Optional.
|
int |
getArgsCount()
Optional.
|
ProtocolStringList |
getArgsList()
Optional.
|
static HadoopJob |
getDefaultInstance() |
HadoopJob |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
HadoopJob.DriverCase |
getDriverCase() |
java.lang.String |
getFileUris(int index)
Optional.
|
ByteString |
getFileUrisBytes(int index)
Optional.
|
int |
getFileUrisCount()
Optional.
|
ProtocolStringList |
getFileUrisList()
Optional.
|
java.lang.String |
getJarFileUris(int index)
Optional.
|
ByteString |
getJarFileUrisBytes(int index)
Optional.
|
int |
getJarFileUrisCount()
Optional.
|
ProtocolStringList |
getJarFileUrisList()
Optional.
|
LoggingConfig |
getLoggingConfig()
Optional.
|
LoggingConfigOrBuilder |
getLoggingConfigOrBuilder()
Optional.
|
java.lang.String |
getMainClass()
The name of the driver's main class.
|
ByteString |
getMainClassBytes()
The name of the driver's main class.
|
java.lang.String |
getMainJarFileUri()
The HCFS URI of the jar file containing the main class.
|
ByteString |
getMainJarFileUriBytes()
The HCFS URI of the jar file containing the main class.
|
Parser<HadoopJob> |
getParserForType() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
Optional.
|
java.util.Map<java.lang.String,java.lang.String> |
getPropertiesMap()
Optional.
|
java.lang.String |
getPropertiesOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional.
|
java.lang.String |
getPropertiesOrThrow(java.lang.String key)
Optional.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLoggingConfig()
Optional.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static HadoopJob.Builder |
newBuilder() |
static HadoopJob.Builder |
newBuilder(HadoopJob prototype) |
HadoopJob.Builder |
newBuilderForType() |
protected HadoopJob.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static HadoopJob |
parseDelimitedFrom(java.io.InputStream input) |
static HadoopJob |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static HadoopJob |
parseFrom(byte[] data) |
static HadoopJob |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static HadoopJob |
parseFrom(java.nio.ByteBuffer data) |
static HadoopJob |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static HadoopJob |
parseFrom(ByteString data) |
static HadoopJob |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static HadoopJob |
parseFrom(CodedInputStream input) |
static HadoopJob |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static HadoopJob |
parseFrom(java.io.InputStream input) |
static HadoopJob |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<HadoopJob> |
parser() |
HadoopJob.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER
public static final int MAIN_CLASS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
public static final int JAR_FILE_URIS_FIELD_NUMBER
public static final int FILE_URIS_FIELD_NUMBER
public static final int ARCHIVE_URIS_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public HadoopJob.DriverCase getDriverCase()
getDriverCase
in interface HadoopJobOrBuilder
public java.lang.String getMainJarFileUri()
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'
string main_jar_file_uri = 1;
getMainJarFileUri
in interface HadoopJobOrBuilder
public ByteString getMainJarFileUriBytes()
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'
string main_jar_file_uri = 1;
getMainJarFileUriBytes
in interface HadoopJobOrBuilder
public java.lang.String getMainClass()
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`.
string main_class = 2;
getMainClass
in interface HadoopJobOrBuilder
public ByteString getMainClassBytes()
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`.
string main_class = 2;
getMainClassBytes
in interface HadoopJobOrBuilder
public ProtocolStringList getArgsList()
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 may occur that causes an incorrect job submission.
repeated string args = 3;
getArgsList
in interface HadoopJobOrBuilder
public int getArgsCount()
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 may occur that causes an incorrect job submission.
repeated string args = 3;
getArgsCount
in interface HadoopJobOrBuilder
public java.lang.String getArgs(int index)
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 may occur that causes an incorrect job submission.
repeated string args = 3;
getArgs
in interface HadoopJobOrBuilder
public ByteString getArgsBytes(int index)
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 may occur that causes an incorrect job submission.
repeated string args = 3;
getArgsBytes
in interface HadoopJobOrBuilder
public ProtocolStringList getJarFileUrisList()
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUrisList
in interface HadoopJobOrBuilder
public int getJarFileUrisCount()
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUrisCount
in interface HadoopJobOrBuilder
public java.lang.String getJarFileUris(int index)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUris
in interface HadoopJobOrBuilder
public ByteString getJarFileUrisBytes(int index)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUrisBytes
in interface HadoopJobOrBuilder
public ProtocolStringList getFileUrisList()
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.
repeated string file_uris = 5;
getFileUrisList
in interface HadoopJobOrBuilder
public int getFileUrisCount()
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.
repeated string file_uris = 5;
getFileUrisCount
in interface HadoopJobOrBuilder
public java.lang.String getFileUris(int index)
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.
repeated string file_uris = 5;
getFileUris
in interface HadoopJobOrBuilder
public ByteString getFileUrisBytes(int index)
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.
repeated string file_uris = 5;
getFileUrisBytes
in interface HadoopJobOrBuilder
public ProtocolStringList getArchiveUrisList()
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.
repeated string archive_uris = 6;
getArchiveUrisList
in interface HadoopJobOrBuilder
public int getArchiveUrisCount()
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.
repeated string archive_uris = 6;
getArchiveUrisCount
in interface HadoopJobOrBuilder
public java.lang.String getArchiveUris(int index)
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.
repeated string archive_uris = 6;
getArchiveUris
in interface HadoopJobOrBuilder
public ByteString getArchiveUrisBytes(int index)
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.
repeated string archive_uris = 6;
getArchiveUrisBytes
in interface HadoopJobOrBuilder
public int getPropertiesCount()
HadoopJobOrBuilder
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesCount
in interface HadoopJobOrBuilder
public boolean containsProperties(java.lang.String key)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
containsProperties
in interface HadoopJobOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getProperties()
getPropertiesMap()
instead.getProperties
in interface HadoopJobOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getPropertiesMap()
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesMap
in interface HadoopJobOrBuilder
public java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesOrDefault
in interface HadoopJobOrBuilder
public java.lang.String getPropertiesOrThrow(java.lang.String key)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesOrThrow
in interface HadoopJobOrBuilder
public boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
hasLoggingConfig
in interface HadoopJobOrBuilder
public LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
getLoggingConfig
in interface HadoopJobOrBuilder
public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
getLoggingConfigOrBuilder
in interface HadoopJobOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static HadoopJob parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HadoopJob parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HadoopJob parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HadoopJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HadoopJob parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HadoopJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HadoopJob parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static HadoopJob parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static HadoopJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static HadoopJob parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static HadoopJob parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static HadoopJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public HadoopJob.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static HadoopJob.Builder newBuilder()
public static HadoopJob.Builder newBuilder(HadoopJob prototype)
public HadoopJob.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected HadoopJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static HadoopJob getDefaultInstance()
public Parser<HadoopJob> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public HadoopJob getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder