1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="dataproc_v1.html">Google Cloud Dataproc API</a> . <a href="dataproc_v1.projects.html">projects</a> . <a href="dataproc_v1.projects.regions.html">regions</a> . <a href="dataproc_v1.projects.regions.jobs.html">jobs</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#cancel">cancel(projectId, region, jobId, body, x__xgafv=None)</a></code></p> 79<p class="firstline">Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(projectId, region, jobId, x__xgafv=None)</a></code></p> 82<p class="firstline">Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(projectId, region, jobId, x__xgafv=None)</a></code></p> 85<p class="firstline">Gets the resource representation for a job in a project.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(projectId, region, pageSize=None, x__xgafv=None, pageToken=None, clusterName=None, jobStateMatcher=None, filter=None)</a></code></p> 88<p class="firstline">Lists regions/{region}/jobs in a project.</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(projectId, region, jobId, body, updateMask=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Updates a job in a project.</p> 95<p class="toc_element"> 96 <code><a href="#submit">submit(projectId, region, body, x__xgafv=None)</a></code></p> 97<p class="firstline">Submits a job to a cluster.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="cancel">cancel(projectId, region, jobId, body, x__xgafv=None)</code> 101 <pre>Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get. 102 103Args: 104 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required) 105 region: string, Required. The Cloud Dataproc region in which to handle the request. (required) 106 jobId: string, Required. The job ID. (required) 107 body: object, The request body. (required) 108 The object takes the form of: 109 110{ # A request to cancel a job. 111 } 112 113 x__xgafv: string, V1 error format. 114 Allowed values 115 1 - v1 error format 116 2 - v2 error format 117 118Returns: 119 An object of the form: 120 121 { # A Cloud Dataproc job resource. 122 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 123 "state": "A String", # Output-only. A state message specifying the overall job state. 124 "stateStartTime": "A String", # Output-only. The time when this state was entered. 125 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 126 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 127 }, 128 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 129 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 130 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 131 "a_key": "A String", 132 }, 133 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 134 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 135 "a_key": "A String", 136 }, 137 }, 138 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 139 "A String", 140 ], 141 "queryList": { # A list of queries to run on a cluster. # A list of queries. 142 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 143 # "hiveJob": { 144 # "queryList": { 145 # "queries": [ 146 # "query1", 147 # "query2", 148 # "query3;query4", 149 # ] 150 # } 151 # } 152 "A String", 153 ], 154 }, 155 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 156 "a_key": "A String", 157 }, 158 }, 159 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 160 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 161 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 162 "a_key": "A String", 163 }, 164 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 165 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 166 "a_key": "A String", 167 }, 168 }, 169 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 170 "A String", 171 ], 172 "queryList": { # A list of queries to run on a cluster. # A list of queries. 173 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 174 # "hiveJob": { 175 # "queryList": { 176 # "queries": [ 177 # "query1", 178 # "query2", 179 # "query3;query4", 180 # ] 181 # } 182 # } 183 "A String", 184 ], 185 }, 186 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 187 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 188 "a_key": "A String", 189 }, 190 }, 191 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 192 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 193 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 194 }, 195 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 196 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 197 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 198 }, 199 "hadoopJob": { # 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). # Job is a Hadoop job. 200 "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 may occur that causes an incorrect job submission. 201 "A String", 202 ], 203 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 204 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 205 "a_key": "A String", 206 }, 207 }, 208 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 209 "A String", 210 ], 211 "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. 212 "A String", 213 ], 214 "mainClass": "A String", # 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. 215 "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. 216 "A String", 217 ], 218 "mainJarFileUri": "A 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' 219 "properties": { # 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. 220 "a_key": "A String", 221 }, 222 }, 223 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 224 "a_key": "A String", 225 }, 226 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 227 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 228 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 229 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 230 "A String", 231 ], 232 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 233 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 234 "a_key": "A String", 235 }, 236 }, 237 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 238 "A String", 239 ], 240 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 241 "A String", 242 ], 243 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 244 "A String", 245 ], 246 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 247 "A String", 248 ], 249 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 250 "a_key": "A String", 251 }, 252 }, 253 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 254 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 255 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 256 "A String", 257 ], 258 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 259 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 260 "a_key": "A String", 261 }, 262 }, 263 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 264 "A String", 265 ], 266 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 267 "A String", 268 ], 269 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 270 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 271 "A String", 272 ], 273 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 274 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 275 "a_key": "A String", 276 }, 277 }, 278 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 279 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 280 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 281 "state": "A String", # Required. The application state. 282 "name": "A String", # Required. The application name. 283 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 284 }, 285 ], 286 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 287 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 288 }, 289 "statusHistory": [ # Output-only. The previous job status. 290 { # Cloud Dataproc job status. 291 "state": "A String", # Output-only. A state message specifying the overall job state. 292 "stateStartTime": "A String", # Output-only. The time when this state was entered. 293 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 294 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 295 }, 296 ], 297 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 298 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 299 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 300 "a_key": "A String", 301 }, 302 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 303 "A String", 304 ], 305 "queryList": { # A list of queries to run on a cluster. # A list of queries. 306 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 307 # "hiveJob": { 308 # "queryList": { 309 # "queries": [ 310 # "query1", 311 # "query2", 312 # "query3;query4", 313 # ] 314 # } 315 # } 316 "A String", 317 ], 318 }, 319 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 320 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 321 "a_key": "A String", 322 }, 323 }, 324 }</pre> 325</div> 326 327<div class="method"> 328 <code class="details" id="delete">delete(projectId, region, jobId, x__xgafv=None)</code> 329 <pre>Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION. 330 331Args: 332 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required) 333 region: string, Required. The Cloud Dataproc region in which to handle the request. (required) 334 jobId: string, Required. The job ID. (required) 335 x__xgafv: string, V1 error format. 336 Allowed values 337 1 - v1 error format 338 2 - v2 error format 339 340Returns: 341 An object of the form: 342 343 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: 344 # service Foo { 345 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 346 # } 347 # The JSON representation for Empty is empty JSON object {}. 348 }</pre> 349</div> 350 351<div class="method"> 352 <code class="details" id="get">get(projectId, region, jobId, x__xgafv=None)</code> 353 <pre>Gets the resource representation for a job in a project. 354 355Args: 356 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required) 357 region: string, Required. The Cloud Dataproc region in which to handle the request. (required) 358 jobId: string, Required. The job ID. (required) 359 x__xgafv: string, V1 error format. 360 Allowed values 361 1 - v1 error format 362 2 - v2 error format 363 364Returns: 365 An object of the form: 366 367 { # A Cloud Dataproc job resource. 368 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 369 "state": "A String", # Output-only. A state message specifying the overall job state. 370 "stateStartTime": "A String", # Output-only. The time when this state was entered. 371 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 372 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 373 }, 374 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 375 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 376 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 377 "a_key": "A String", 378 }, 379 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 380 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 381 "a_key": "A String", 382 }, 383 }, 384 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 385 "A String", 386 ], 387 "queryList": { # A list of queries to run on a cluster. # A list of queries. 388 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 389 # "hiveJob": { 390 # "queryList": { 391 # "queries": [ 392 # "query1", 393 # "query2", 394 # "query3;query4", 395 # ] 396 # } 397 # } 398 "A String", 399 ], 400 }, 401 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 402 "a_key": "A String", 403 }, 404 }, 405 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 406 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 407 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 408 "a_key": "A String", 409 }, 410 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 411 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 412 "a_key": "A String", 413 }, 414 }, 415 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 416 "A String", 417 ], 418 "queryList": { # A list of queries to run on a cluster. # A list of queries. 419 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 420 # "hiveJob": { 421 # "queryList": { 422 # "queries": [ 423 # "query1", 424 # "query2", 425 # "query3;query4", 426 # ] 427 # } 428 # } 429 "A String", 430 ], 431 }, 432 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 433 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 434 "a_key": "A String", 435 }, 436 }, 437 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 438 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 439 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 440 }, 441 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 442 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 443 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 444 }, 445 "hadoopJob": { # 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). # Job is a Hadoop job. 446 "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 may occur that causes an incorrect job submission. 447 "A String", 448 ], 449 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 450 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 451 "a_key": "A String", 452 }, 453 }, 454 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 455 "A String", 456 ], 457 "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. 458 "A String", 459 ], 460 "mainClass": "A String", # 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. 461 "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. 462 "A String", 463 ], 464 "mainJarFileUri": "A 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' 465 "properties": { # 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. 466 "a_key": "A String", 467 }, 468 }, 469 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 470 "a_key": "A String", 471 }, 472 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 473 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 474 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 475 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 476 "A String", 477 ], 478 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 479 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 480 "a_key": "A String", 481 }, 482 }, 483 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 484 "A String", 485 ], 486 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 487 "A String", 488 ], 489 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 490 "A String", 491 ], 492 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 493 "A String", 494 ], 495 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 496 "a_key": "A String", 497 }, 498 }, 499 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 500 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 501 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 502 "A String", 503 ], 504 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 505 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 506 "a_key": "A String", 507 }, 508 }, 509 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 510 "A String", 511 ], 512 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 513 "A String", 514 ], 515 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 516 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 517 "A String", 518 ], 519 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 520 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 521 "a_key": "A String", 522 }, 523 }, 524 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 525 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 526 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 527 "state": "A String", # Required. The application state. 528 "name": "A String", # Required. The application name. 529 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 530 }, 531 ], 532 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 533 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 534 }, 535 "statusHistory": [ # Output-only. The previous job status. 536 { # Cloud Dataproc job status. 537 "state": "A String", # Output-only. A state message specifying the overall job state. 538 "stateStartTime": "A String", # Output-only. The time when this state was entered. 539 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 540 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 541 }, 542 ], 543 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 544 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 545 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 546 "a_key": "A String", 547 }, 548 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 549 "A String", 550 ], 551 "queryList": { # A list of queries to run on a cluster. # A list of queries. 552 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 553 # "hiveJob": { 554 # "queryList": { 555 # "queries": [ 556 # "query1", 557 # "query2", 558 # "query3;query4", 559 # ] 560 # } 561 # } 562 "A String", 563 ], 564 }, 565 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 566 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 567 "a_key": "A String", 568 }, 569 }, 570 }</pre> 571</div> 572 573<div class="method"> 574 <code class="details" id="list">list(projectId, region, pageSize=None, x__xgafv=None, pageToken=None, clusterName=None, jobStateMatcher=None, filter=None)</code> 575 <pre>Lists regions/{region}/jobs in a project. 576 577Args: 578 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required) 579 region: string, Required. The Cloud Dataproc region in which to handle the request. (required) 580 pageSize: integer, Optional. The number of results to return in each response. 581 x__xgafv: string, V1 error format. 582 Allowed values 583 1 - v1 error format 584 2 - v2 error format 585 pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results. 586 clusterName: string, Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster. 587 jobStateMatcher: string, Optional. Specifies enumerated categories of jobs to list (default = match ALL jobs). 588 filter: string, Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or INACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = * 589 590Returns: 591 An object of the form: 592 593 { # A list of jobs in a project. 594 "nextPageToken": "A String", # Optional. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListJobsRequest</code>. 595 "jobs": [ # Output-only. Jobs list. 596 { # A Cloud Dataproc job resource. 597 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 598 "state": "A String", # Output-only. A state message specifying the overall job state. 599 "stateStartTime": "A String", # Output-only. The time when this state was entered. 600 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 601 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 602 }, 603 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 604 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 605 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 606 "a_key": "A String", 607 }, 608 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 609 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 610 "a_key": "A String", 611 }, 612 }, 613 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 614 "A String", 615 ], 616 "queryList": { # A list of queries to run on a cluster. # A list of queries. 617 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 618 # "hiveJob": { 619 # "queryList": { 620 # "queries": [ 621 # "query1", 622 # "query2", 623 # "query3;query4", 624 # ] 625 # } 626 # } 627 "A String", 628 ], 629 }, 630 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 631 "a_key": "A String", 632 }, 633 }, 634 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 635 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 636 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 637 "a_key": "A String", 638 }, 639 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 640 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 641 "a_key": "A String", 642 }, 643 }, 644 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 645 "A String", 646 ], 647 "queryList": { # A list of queries to run on a cluster. # A list of queries. 648 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 649 # "hiveJob": { 650 # "queryList": { 651 # "queries": [ 652 # "query1", 653 # "query2", 654 # "query3;query4", 655 # ] 656 # } 657 # } 658 "A String", 659 ], 660 }, 661 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 662 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 663 "a_key": "A String", 664 }, 665 }, 666 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 667 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 668 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 669 }, 670 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 671 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 672 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 673 }, 674 "hadoopJob": { # 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). # Job is a Hadoop job. 675 "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 may occur that causes an incorrect job submission. 676 "A String", 677 ], 678 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 679 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 680 "a_key": "A String", 681 }, 682 }, 683 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 684 "A String", 685 ], 686 "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. 687 "A String", 688 ], 689 "mainClass": "A String", # 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. 690 "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. 691 "A String", 692 ], 693 "mainJarFileUri": "A 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' 694 "properties": { # 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. 695 "a_key": "A String", 696 }, 697 }, 698 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 699 "a_key": "A String", 700 }, 701 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 702 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 703 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 704 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 705 "A String", 706 ], 707 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 708 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 709 "a_key": "A String", 710 }, 711 }, 712 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 713 "A String", 714 ], 715 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 716 "A String", 717 ], 718 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 719 "A String", 720 ], 721 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 722 "A String", 723 ], 724 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 725 "a_key": "A String", 726 }, 727 }, 728 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 729 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 730 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 731 "A String", 732 ], 733 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 734 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 735 "a_key": "A String", 736 }, 737 }, 738 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 739 "A String", 740 ], 741 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 742 "A String", 743 ], 744 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 745 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 746 "A String", 747 ], 748 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 749 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 750 "a_key": "A String", 751 }, 752 }, 753 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 754 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 755 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 756 "state": "A String", # Required. The application state. 757 "name": "A String", # Required. The application name. 758 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 759 }, 760 ], 761 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 762 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 763 }, 764 "statusHistory": [ # Output-only. The previous job status. 765 { # Cloud Dataproc job status. 766 "state": "A String", # Output-only. A state message specifying the overall job state. 767 "stateStartTime": "A String", # Output-only. The time when this state was entered. 768 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 769 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 770 }, 771 ], 772 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 773 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 774 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 775 "a_key": "A String", 776 }, 777 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 778 "A String", 779 ], 780 "queryList": { # A list of queries to run on a cluster. # A list of queries. 781 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 782 # "hiveJob": { 783 # "queryList": { 784 # "queries": [ 785 # "query1", 786 # "query2", 787 # "query3;query4", 788 # ] 789 # } 790 # } 791 "A String", 792 ], 793 }, 794 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 795 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 796 "a_key": "A String", 797 }, 798 }, 799 }, 800 ], 801 }</pre> 802</div> 803 804<div class="method"> 805 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 806 <pre>Retrieves the next page of results. 807 808Args: 809 previous_request: The request for the previous page. (required) 810 previous_response: The response from the request for the previous page. (required) 811 812Returns: 813 A request object that you can call 'execute()' on to request the next 814 page. Returns None if there are no more items in the collection. 815 </pre> 816</div> 817 818<div class="method"> 819 <code class="details" id="patch">patch(projectId, region, jobId, body, updateMask=None, x__xgafv=None)</code> 820 <pre>Updates a job in a project. 821 822Args: 823 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required) 824 region: string, Required. The Cloud Dataproc region in which to handle the request. (required) 825 jobId: string, Required. The job ID. (required) 826 body: object, The request body. (required) 827 The object takes the form of: 828 829{ # A Cloud Dataproc job resource. 830 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 831 "state": "A String", # Output-only. A state message specifying the overall job state. 832 "stateStartTime": "A String", # Output-only. The time when this state was entered. 833 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 834 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 835 }, 836 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 837 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 838 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 839 "a_key": "A String", 840 }, 841 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 842 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 843 "a_key": "A String", 844 }, 845 }, 846 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 847 "A String", 848 ], 849 "queryList": { # A list of queries to run on a cluster. # A list of queries. 850 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 851 # "hiveJob": { 852 # "queryList": { 853 # "queries": [ 854 # "query1", 855 # "query2", 856 # "query3;query4", 857 # ] 858 # } 859 # } 860 "A String", 861 ], 862 }, 863 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 864 "a_key": "A String", 865 }, 866 }, 867 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 868 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 869 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 870 "a_key": "A String", 871 }, 872 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 873 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 874 "a_key": "A String", 875 }, 876 }, 877 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 878 "A String", 879 ], 880 "queryList": { # A list of queries to run on a cluster. # A list of queries. 881 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 882 # "hiveJob": { 883 # "queryList": { 884 # "queries": [ 885 # "query1", 886 # "query2", 887 # "query3;query4", 888 # ] 889 # } 890 # } 891 "A String", 892 ], 893 }, 894 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 895 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 896 "a_key": "A String", 897 }, 898 }, 899 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 900 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 901 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 902 }, 903 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 904 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 905 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 906 }, 907 "hadoopJob": { # 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). # Job is a Hadoop job. 908 "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 may occur that causes an incorrect job submission. 909 "A String", 910 ], 911 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 912 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 913 "a_key": "A String", 914 }, 915 }, 916 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 917 "A String", 918 ], 919 "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. 920 "A String", 921 ], 922 "mainClass": "A String", # 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. 923 "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. 924 "A String", 925 ], 926 "mainJarFileUri": "A 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' 927 "properties": { # 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. 928 "a_key": "A String", 929 }, 930 }, 931 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 932 "a_key": "A String", 933 }, 934 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 935 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 936 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 937 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 938 "A String", 939 ], 940 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 941 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 942 "a_key": "A String", 943 }, 944 }, 945 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 946 "A String", 947 ], 948 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 949 "A String", 950 ], 951 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 952 "A String", 953 ], 954 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 955 "A String", 956 ], 957 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 958 "a_key": "A String", 959 }, 960 }, 961 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 962 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 963 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 964 "A String", 965 ], 966 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 967 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 968 "a_key": "A String", 969 }, 970 }, 971 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 972 "A String", 973 ], 974 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 975 "A String", 976 ], 977 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 978 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 979 "A String", 980 ], 981 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 982 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 983 "a_key": "A String", 984 }, 985 }, 986 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 987 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 988 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 989 "state": "A String", # Required. The application state. 990 "name": "A String", # Required. The application name. 991 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 992 }, 993 ], 994 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 995 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 996 }, 997 "statusHistory": [ # Output-only. The previous job status. 998 { # Cloud Dataproc job status. 999 "state": "A String", # Output-only. A state message specifying the overall job state. 1000 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1001 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1002 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1003 }, 1004 ], 1005 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 1006 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 1007 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 1008 "a_key": "A String", 1009 }, 1010 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 1011 "A String", 1012 ], 1013 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1014 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1015 # "hiveJob": { 1016 # "queryList": { 1017 # "queries": [ 1018 # "query1", 1019 # "query2", 1020 # "query3;query4", 1021 # ] 1022 # } 1023 # } 1024 "A String", 1025 ], 1026 }, 1027 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1028 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 1029 "a_key": "A String", 1030 }, 1031 }, 1032} 1033 1034 updateMask: string, Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated. 1035 x__xgafv: string, V1 error format. 1036 Allowed values 1037 1 - v1 error format 1038 2 - v2 error format 1039 1040Returns: 1041 An object of the form: 1042 1043 { # A Cloud Dataproc job resource. 1044 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 1045 "state": "A String", # Output-only. A state message specifying the overall job state. 1046 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1047 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1048 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1049 }, 1050 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 1051 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 1052 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 1053 "a_key": "A String", 1054 }, 1055 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1056 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1057 "a_key": "A String", 1058 }, 1059 }, 1060 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 1061 "A String", 1062 ], 1063 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1064 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1065 # "hiveJob": { 1066 # "queryList": { 1067 # "queries": [ 1068 # "query1", 1069 # "query2", 1070 # "query3;query4", 1071 # ] 1072 # } 1073 # } 1074 "A String", 1075 ], 1076 }, 1077 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 1078 "a_key": "A String", 1079 }, 1080 }, 1081 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 1082 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 1083 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 1084 "a_key": "A String", 1085 }, 1086 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1087 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1088 "a_key": "A String", 1089 }, 1090 }, 1091 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 1092 "A String", 1093 ], 1094 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1095 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1096 # "hiveJob": { 1097 # "queryList": { 1098 # "queries": [ 1099 # "query1", 1100 # "query2", 1101 # "query3;query4", 1102 # ] 1103 # } 1104 # } 1105 "A String", 1106 ], 1107 }, 1108 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1109 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 1110 "a_key": "A String", 1111 }, 1112 }, 1113 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 1114 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 1115 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 1116 }, 1117 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 1118 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 1119 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 1120 }, 1121 "hadoopJob": { # 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). # Job is a Hadoop job. 1122 "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 may occur that causes an incorrect job submission. 1123 "A String", 1124 ], 1125 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1126 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1127 "a_key": "A String", 1128 }, 1129 }, 1130 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 1131 "A String", 1132 ], 1133 "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. 1134 "A String", 1135 ], 1136 "mainClass": "A String", # 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. 1137 "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. 1138 "A String", 1139 ], 1140 "mainJarFileUri": "A 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' 1141 "properties": { # 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. 1142 "a_key": "A String", 1143 }, 1144 }, 1145 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 1146 "a_key": "A String", 1147 }, 1148 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 1149 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 1150 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 1151 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1152 "A String", 1153 ], 1154 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1155 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1156 "a_key": "A String", 1157 }, 1158 }, 1159 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 1160 "A String", 1161 ], 1162 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 1163 "A String", 1164 ], 1165 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 1166 "A String", 1167 ], 1168 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 1169 "A String", 1170 ], 1171 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1172 "a_key": "A String", 1173 }, 1174 }, 1175 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 1176 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 1177 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1178 "A String", 1179 ], 1180 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1181 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1182 "a_key": "A String", 1183 }, 1184 }, 1185 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 1186 "A String", 1187 ], 1188 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 1189 "A String", 1190 ], 1191 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 1192 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 1193 "A String", 1194 ], 1195 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 1196 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1197 "a_key": "A String", 1198 }, 1199 }, 1200 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 1201 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 1202 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 1203 "state": "A String", # Required. The application state. 1204 "name": "A String", # Required. The application name. 1205 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 1206 }, 1207 ], 1208 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 1209 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 1210 }, 1211 "statusHistory": [ # Output-only. The previous job status. 1212 { # Cloud Dataproc job status. 1213 "state": "A String", # Output-only. A state message specifying the overall job state. 1214 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1215 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1216 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1217 }, 1218 ], 1219 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 1220 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 1221 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 1222 "a_key": "A String", 1223 }, 1224 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 1225 "A String", 1226 ], 1227 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1228 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1229 # "hiveJob": { 1230 # "queryList": { 1231 # "queries": [ 1232 # "query1", 1233 # "query2", 1234 # "query3;query4", 1235 # ] 1236 # } 1237 # } 1238 "A String", 1239 ], 1240 }, 1241 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1242 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 1243 "a_key": "A String", 1244 }, 1245 }, 1246 }</pre> 1247</div> 1248 1249<div class="method"> 1250 <code class="details" id="submit">submit(projectId, region, body, x__xgafv=None)</code> 1251 <pre>Submits a job to a cluster. 1252 1253Args: 1254 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required) 1255 region: string, Required. The Cloud Dataproc region in which to handle the request. (required) 1256 body: object, The request body. (required) 1257 The object takes the form of: 1258 1259{ # A request to submit a job. 1260 "job": { # A Cloud Dataproc job resource. # Required. The job resource. 1261 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 1262 "state": "A String", # Output-only. A state message specifying the overall job state. 1263 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1264 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1265 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1266 }, 1267 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 1268 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 1269 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 1270 "a_key": "A String", 1271 }, 1272 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1273 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1274 "a_key": "A String", 1275 }, 1276 }, 1277 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 1278 "A String", 1279 ], 1280 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1281 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1282 # "hiveJob": { 1283 # "queryList": { 1284 # "queries": [ 1285 # "query1", 1286 # "query2", 1287 # "query3;query4", 1288 # ] 1289 # } 1290 # } 1291 "A String", 1292 ], 1293 }, 1294 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 1295 "a_key": "A String", 1296 }, 1297 }, 1298 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 1299 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 1300 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 1301 "a_key": "A String", 1302 }, 1303 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1304 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1305 "a_key": "A String", 1306 }, 1307 }, 1308 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 1309 "A String", 1310 ], 1311 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1312 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1313 # "hiveJob": { 1314 # "queryList": { 1315 # "queries": [ 1316 # "query1", 1317 # "query2", 1318 # "query3;query4", 1319 # ] 1320 # } 1321 # } 1322 "A String", 1323 ], 1324 }, 1325 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1326 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 1327 "a_key": "A String", 1328 }, 1329 }, 1330 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 1331 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 1332 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 1333 }, 1334 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 1335 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 1336 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 1337 }, 1338 "hadoopJob": { # 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). # Job is a Hadoop job. 1339 "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 may occur that causes an incorrect job submission. 1340 "A String", 1341 ], 1342 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1343 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1344 "a_key": "A String", 1345 }, 1346 }, 1347 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 1348 "A String", 1349 ], 1350 "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. 1351 "A String", 1352 ], 1353 "mainClass": "A String", # 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. 1354 "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. 1355 "A String", 1356 ], 1357 "mainJarFileUri": "A 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' 1358 "properties": { # 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. 1359 "a_key": "A String", 1360 }, 1361 }, 1362 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 1363 "a_key": "A String", 1364 }, 1365 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 1366 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 1367 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 1368 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1369 "A String", 1370 ], 1371 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1372 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1373 "a_key": "A String", 1374 }, 1375 }, 1376 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 1377 "A String", 1378 ], 1379 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 1380 "A String", 1381 ], 1382 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 1383 "A String", 1384 ], 1385 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 1386 "A String", 1387 ], 1388 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1389 "a_key": "A String", 1390 }, 1391 }, 1392 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 1393 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 1394 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1395 "A String", 1396 ], 1397 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1398 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1399 "a_key": "A String", 1400 }, 1401 }, 1402 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 1403 "A String", 1404 ], 1405 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 1406 "A String", 1407 ], 1408 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 1409 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 1410 "A String", 1411 ], 1412 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 1413 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1414 "a_key": "A String", 1415 }, 1416 }, 1417 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 1418 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 1419 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 1420 "state": "A String", # Required. The application state. 1421 "name": "A String", # Required. The application name. 1422 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 1423 }, 1424 ], 1425 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 1426 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 1427 }, 1428 "statusHistory": [ # Output-only. The previous job status. 1429 { # Cloud Dataproc job status. 1430 "state": "A String", # Output-only. A state message specifying the overall job state. 1431 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1432 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1433 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1434 }, 1435 ], 1436 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 1437 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 1438 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 1439 "a_key": "A String", 1440 }, 1441 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 1442 "A String", 1443 ], 1444 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1445 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1446 # "hiveJob": { 1447 # "queryList": { 1448 # "queries": [ 1449 # "query1", 1450 # "query2", 1451 # "query3;query4", 1452 # ] 1453 # } 1454 # } 1455 "A String", 1456 ], 1457 }, 1458 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1459 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 1460 "a_key": "A String", 1461 }, 1462 }, 1463 }, 1464 } 1465 1466 x__xgafv: string, V1 error format. 1467 Allowed values 1468 1 - v1 error format 1469 2 - v2 error format 1470 1471Returns: 1472 An object of the form: 1473 1474 { # A Cloud Dataproc job resource. 1475 "status": { # Cloud Dataproc job status. # Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields. 1476 "state": "A String", # Output-only. A state message specifying the overall job state. 1477 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1478 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1479 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1480 }, 1481 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 1482 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 1483 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 1484 "a_key": "A String", 1485 }, 1486 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1487 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1488 "a_key": "A String", 1489 }, 1490 }, 1491 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 1492 "A String", 1493 ], 1494 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1495 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1496 # "hiveJob": { 1497 # "queryList": { 1498 # "queries": [ 1499 # "query1", 1500 # "query2", 1501 # "query3;query4", 1502 # ] 1503 # } 1504 # } 1505 "A String", 1506 ], 1507 }, 1508 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 1509 "a_key": "A String", 1510 }, 1511 }, 1512 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 1513 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 1514 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 1515 "a_key": "A String", 1516 }, 1517 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1518 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1519 "a_key": "A String", 1520 }, 1521 }, 1522 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 1523 "A String", 1524 ], 1525 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1526 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1527 # "hiveJob": { 1528 # "queryList": { 1529 # "queries": [ 1530 # "query1", 1531 # "query2", 1532 # "query3;query4", 1533 # ] 1534 # } 1535 # } 1536 "A String", 1537 ], 1538 }, 1539 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1540 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 1541 "a_key": "A String", 1542 }, 1543 }, 1544 "placement": { # Cloud Dataproc job config. # Required. Job information, including how, when, and where to run the job. 1545 "clusterName": "A String", # Required. The name of the cluster where the job will be submitted. 1546 "clusterUuid": "A String", # Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted. 1547 }, 1548 "reference": { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>. 1549 "projectId": "A String", # Required. The ID of the Google Cloud Platform project that the job belongs to. 1550 "jobId": "A String", # Optional. The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters. 1551 }, 1552 "hadoopJob": { # 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). # Job is a Hadoop job. 1553 "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 may occur that causes an incorrect job submission. 1554 "A String", 1555 ], 1556 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1557 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1558 "a_key": "A String", 1559 }, 1560 }, 1561 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 1562 "A String", 1563 ], 1564 "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. 1565 "A String", 1566 ], 1567 "mainClass": "A String", # 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. 1568 "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. 1569 "A String", 1570 ], 1571 "mainJarFileUri": "A 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' 1572 "properties": { # 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. 1573 "a_key": "A String", 1574 }, 1575 }, 1576 "labels": { # Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job. 1577 "a_key": "A String", 1578 }, 1579 "driverOutputResourceUri": "A String", # Output-only. A URI pointing to the location of the stdout of the job's driver program. 1580 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 1581 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 1582 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1583 "A String", 1584 ], 1585 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1586 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1587 "a_key": "A String", 1588 }, 1589 }, 1590 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 1591 "A String", 1592 ], 1593 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 1594 "A String", 1595 ], 1596 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 1597 "A String", 1598 ], 1599 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 1600 "A String", 1601 ], 1602 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1603 "a_key": "A String", 1604 }, 1605 }, 1606 "driverControlFilesUri": "A String", # Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. 1607 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 1608 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1609 "A String", 1610 ], 1611 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1612 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1613 "a_key": "A String", 1614 }, 1615 }, 1616 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 1617 "A String", 1618 ], 1619 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 1620 "A String", 1621 ], 1622 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 1623 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 1624 "A String", 1625 ], 1626 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 1627 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1628 "a_key": "A String", 1629 }, 1630 }, 1631 "yarnApplications": [ # Output-only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 1632 { # A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release. 1633 "progress": 3.14, # Required. The numerical progress of the application, from 1 to 100. 1634 "state": "A String", # Required. The application state. 1635 "name": "A String", # Required. The application name. 1636 "trackingUrl": "A String", # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access. 1637 }, 1638 ], 1639 "scheduling": { # Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release. # Optional. Job scheduling configuration. 1640 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 1641 }, 1642 "statusHistory": [ # Output-only. The previous job status. 1643 { # Cloud Dataproc job status. 1644 "state": "A String", # Output-only. A state message specifying the overall job state. 1645 "stateStartTime": "A String", # Output-only. The time when this state was entered. 1646 "details": "A String", # Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>. 1647 "substate": "A String", # Output-only. Additional state information, which includes status reported by the agent. 1648 }, 1649 ], 1650 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 1651 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 1652 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 1653 "a_key": "A String", 1654 }, 1655 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 1656 "A String", 1657 ], 1658 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1659 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1660 # "hiveJob": { 1661 # "queryList": { 1662 # "queries": [ 1663 # "query1", 1664 # "query2", 1665 # "query3;query4", 1666 # ] 1667 # } 1668 # } 1669 "A String", 1670 ], 1671 }, 1672 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1673 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 1674 "a_key": "A String", 1675 }, 1676 }, 1677 }</pre> 1678</div> 1679 1680</body></html>