{"args": [string],"jarFileUris": [string],"fileUris": [string],"archiveUris": [string],"properties": {string: string,...},"loggingConfig": {object (LoggingConfig)},// Union field driver can be only one of the following:"mainJarFileUri": string,"mainClass": string// End of list of possible types for union field driver.}
Fields
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" }.
Optional. The runtime log config for job execution.
Union field 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-20 UTC."],[[["\u003cp\u003eThis document details the JSON representation and configurations for running Apache Hadoop MapReduce jobs on Apache Hadoop YARN through a Dataproc job.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON structure includes options for specifying arguments, JAR file URIs, file URIs, archive URIs, and Hadoop properties, allowing for comprehensive customization of the job.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the main driver of the job using either the \u003ccode\u003emainJarFileUri\u003c/code\u003e, which points to a JAR file containing the main class, or the \u003ccode\u003emainClass\u003c/code\u003e, which specifies the name of the main class, while indicating a required union field \u003ccode\u003edriver\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe configuration supports adding JAR files to the CLASSPATH, copying files to the working directory, and extracting archives within that directory.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eloggingConfig\u003c/code\u003e object can be specified to manage runtime log settings during job execution.\u003c/p\u003e\n"]]],[],null,["# HadoopJob\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA 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)."]]