A Dataproc job for running Apache Hadoop MapReduce jobs on Apache Hadoop YARN .
JSON representation |
---|
{ "args" : [ string ] , "jarFileUris" : [ string ] , "fileUris" : [ string ] , "archiveUris" : [ string ] , "properties" : { string : string , ... } , "loggingConfig" : { object ( |
args[]
string
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.
jarFileUris[]
string
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
fileUris[]
string
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.
archiveUris[]
string
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.
properties
map (key: string, value: string)
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.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
loggingConfig
object (
LoggingConfig
)
Optional. The runtime log config for job execution.
driver
. Required. Indicates the location of the driver's main class. Specify either the jar file that contains the main class or the main class name. To specify both, add the jar file to jar_file_uris
, and then specify the main class name in this property. driver
can be only one of the following:mainJarFileUri
string
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'
mainClass
string
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jarFileUris
.