Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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_v1beta1.html">Google Cloud Dataproc API</a> . <a href="dataproc_v1beta1.projects.html">projects</a> . <a href="dataproc_v1beta1.projects.jobs.html">jobs</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#cancel">cancel(projectId, 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 [jobs.list](/dataproc/reference/rest/v1beta1/projects.jobs/list) or [jobs.get](/dataproc/reference/rest/v1beta1/projects.jobs/get).</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(projectId, 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, 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"> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 87 | <code><a href="#list">list(projectId, pageSize=None, x__xgafv=None, jobStateMatcher=None, pageToken=None, clusterName=None, filter=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 88 | <p class="firstline">Lists 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="#submit">submit(projectId, body, x__xgafv=None)</a></code></p> |
| 94 | <p class="firstline">Submits a job to a cluster.</p> |
| 95 | <h3>Method Details</h3> |
| 96 | <div class="method"> |
| 97 | <code class="details" id="cancel">cancel(projectId, jobId, body, x__xgafv=None)</code> |
| 98 | <pre>Starts a job cancellation request. To access the job resource after cancellation, call [jobs.list](/dataproc/reference/rest/v1beta1/projects.jobs/list) or [jobs.get](/dataproc/reference/rest/v1beta1/projects.jobs/get). |
| 99 | |
| 100 | Args: |
| 101 | projectId: string, [Required] The ID of the Google Cloud Platform project that the job belongs to. (required) |
| 102 | jobId: string, [Required] The job ID. (required) |
| 103 | body: object, The request body. (required) |
| 104 | The object takes the form of: |
| 105 | |
| 106 | { # A request to cancel a job. |
| 107 | } |
| 108 | |
| 109 | x__xgafv: string, V1 error format. |
| 110 | |
| 111 | Returns: |
| 112 | An object of the form: |
| 113 | |
| 114 | { # A Cloud Dataproc job resource. |
| 115 | "status": { # Cloud Dataproc job status. # [Output-only] The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields. |
| 116 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 117 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 118 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 119 | }, |
| 120 | "hadoopJob": { # A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. # Job is a Hadoop job. |
| 121 | "jarFileUris": [ # [Optional] Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. |
| 122 | "A String", |
| 123 | ], |
| 124 | "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. |
| 125 | "A String", |
| 126 | ], |
| 127 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 128 | "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' |
| 129 | "a_key": "A String", |
| 130 | }, |
| 131 | }, |
| 132 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. |
| 133 | "A String", |
| 134 | ], |
| 135 | "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`. |
| 136 | "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. |
| 137 | "A String", |
| 138 | ], |
| 139 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (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' |
| 140 | "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. |
| 141 | "a_key": "A String", |
| 142 | }, |
| 143 | }, |
| 144 | "statusHistory": [ # [Output-only] The previous job status. |
| 145 | { # Cloud Dataproc job status. |
| 146 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 147 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 148 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 149 | }, |
| 150 | ], |
| 151 | "placement": { # Cloud Dataproc job configuration. # [Required] Job information, including how, when, and where to run the job. |
| 152 | "clusterName": "A String", # [Required] The name of the cluster where the job will be submitted. |
| 153 | "clusterUuid": "A String", # [Output-only] A cluster UUID generated by the Dataproc service when the job is submitted. |
| 154 | }, |
| 155 | "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 job_id. |
| 156 | "projectId": "A String", # [Required] The ID of the Google Cloud Platform project that the job belongs to. |
| 157 | "jobId": "A String", # [Required] 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 512 characters. |
| 158 | }, |
| 159 | "sparkSqlJob": { # A Cloud Dataproc job for running Spark SQL queries. # Job is a SparkSql job. |
| 160 | "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. |
| 161 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`). |
| 162 | "a_key": "A String", |
| 163 | }, |
| 164 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to be added to the Spark CLASSPATH. |
| 165 | "A String", |
| 166 | ], |
| 167 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 168 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 169 | "A String", |
| 170 | ], |
| 171 | }, |
| 172 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 173 | "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' |
| 174 | "a_key": "A String", |
| 175 | }, |
| 176 | }, |
| 177 | "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. |
| 178 | "a_key": "A String", |
| 179 | }, |
| 180 | }, |
| 181 | "pigJob": { # A Cloud Dataproc job for running Pig queries on YARN. # Job is a Pig job. |
| 182 | "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. |
| 183 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`). |
| 184 | "a_key": "A String", |
| 185 | }, |
| 186 | "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. |
| 187 | "A String", |
| 188 | ], |
| 189 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 190 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 191 | "A String", |
| 192 | ], |
| 193 | }, |
| 194 | "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. |
| 195 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 196 | "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' |
| 197 | "a_key": "A String", |
| 198 | }, |
| 199 | }, |
| 200 | "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. |
| 201 | "a_key": "A String", |
| 202 | }, |
| 203 | }, |
| 204 | "driverOutputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdout of the job's driver program. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 205 | "labels": { # [Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given job. |
| 206 | "a_key": "A String", |
| 207 | }, |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 208 | "submittedBy": "A String", # [Output-only] The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@hostname. |
| 209 | "driverInputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdin of the job's driver program, only set if the job is interactive. |
| 210 | "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`. |
| 211 | "sparkJob": { # A Cloud Dataproc job for running Spark applications on YARN. # Job is a Spark job. |
| 212 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. |
| 213 | "A String", |
| 214 | ], |
| 215 | "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. |
| 216 | "A String", |
| 217 | ], |
| 218 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 219 | "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' |
| 220 | "a_key": "A String", |
| 221 | }, |
| 222 | }, |
| 223 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. |
| 224 | "A String", |
| 225 | ], |
| 226 | "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`. |
| 227 | "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. |
| 228 | "A String", |
| 229 | ], |
| 230 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class. |
| 231 | "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. |
| 232 | "a_key": "A String", |
| 233 | }, |
| 234 | }, |
| 235 | "yarnApplications": [ # [Output-only] The collection of YARN applications spun up by this job. |
| 236 | { # A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. |
| 237 | "progress": 3.14, # [Required] The numerical progress of the application, from 1 to 100. |
| 238 | "state": "A String", # [Required] The application state. |
| 239 | "name": "A String", # [Required] The application name. |
| 240 | "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. |
| 241 | }, |
| 242 | ], |
| 243 | "pysparkJob": { # A Cloud Dataproc job for running PySpark applications on YARN. # Job is a Pyspark job. |
| 244 | "mainPythonFileUri": "A String", # [Required] The Hadoop Compatible Filesystem (HCFS) URI of the main Python file to use as the driver. Must be a .py file. |
| 245 | "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. |
| 246 | "A String", |
| 247 | ], |
| 248 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. |
| 249 | "A String", |
| 250 | ], |
| 251 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 252 | "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' |
| 253 | "a_key": "A String", |
| 254 | }, |
| 255 | }, |
| 256 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. |
| 257 | "A String", |
| 258 | ], |
| 259 | "archiveUris": [ # [Optional] HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. |
| 260 | "A String", |
| 261 | ], |
| 262 | "pythonFileUris": [ # [Optional] HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. |
| 263 | "A String", |
| 264 | ], |
| 265 | "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. |
| 266 | "a_key": "A String", |
| 267 | }, |
| 268 | }, |
| 269 | "hiveJob": { # A Cloud Dataproc job for running Hive queries on YARN. # Job is a Hive job. |
| 270 | "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. |
| 271 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`). |
| 272 | "a_key": "A String", |
| 273 | }, |
| 274 | "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. |
| 275 | "A String", |
| 276 | ], |
| 277 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 278 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 279 | "A String", |
| 280 | ], |
| 281 | }, |
| 282 | "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. |
| 283 | "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. |
| 284 | "a_key": "A String", |
| 285 | }, |
| 286 | }, |
| 287 | "interactive": True or False, # [Optional] If set to `true`, the driver's stdin will be kept open and `driver_input_uri` will be set to provide a path at which additional input can be sent to the driver. |
| 288 | }</pre> |
| 289 | </div> |
| 290 | |
| 291 | <div class="method"> |
| 292 | <code class="details" id="delete">delete(projectId, jobId, x__xgafv=None)</code> |
| 293 | <pre>Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDITION`. |
| 294 | |
| 295 | Args: |
| 296 | projectId: string, [Required] The ID of the Google Cloud Platform project that the job belongs to. (required) |
| 297 | jobId: string, [Required] The job ID. (required) |
| 298 | x__xgafv: string, V1 error format. |
| 299 | |
| 300 | Returns: |
| 301 | An object of the form: |
| 302 | |
| 303 | { # 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: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. |
| 304 | }</pre> |
| 305 | </div> |
| 306 | |
| 307 | <div class="method"> |
| 308 | <code class="details" id="get">get(projectId, jobId, x__xgafv=None)</code> |
| 309 | <pre>Gets the resource representation for a job in a project. |
| 310 | |
| 311 | Args: |
| 312 | projectId: string, [Required] The ID of the Google Cloud Platform project that the job belongs to. (required) |
| 313 | jobId: string, [Required] The job ID. (required) |
| 314 | x__xgafv: string, V1 error format. |
| 315 | |
| 316 | Returns: |
| 317 | An object of the form: |
| 318 | |
| 319 | { # A Cloud Dataproc job resource. |
| 320 | "status": { # Cloud Dataproc job status. # [Output-only] The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields. |
| 321 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 322 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 323 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 324 | }, |
| 325 | "hadoopJob": { # A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. # Job is a Hadoop job. |
| 326 | "jarFileUris": [ # [Optional] Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. |
| 327 | "A String", |
| 328 | ], |
| 329 | "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. |
| 330 | "A String", |
| 331 | ], |
| 332 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 333 | "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' |
| 334 | "a_key": "A String", |
| 335 | }, |
| 336 | }, |
| 337 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. |
| 338 | "A String", |
| 339 | ], |
| 340 | "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`. |
| 341 | "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. |
| 342 | "A String", |
| 343 | ], |
| 344 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (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' |
| 345 | "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. |
| 346 | "a_key": "A String", |
| 347 | }, |
| 348 | }, |
| 349 | "statusHistory": [ # [Output-only] The previous job status. |
| 350 | { # Cloud Dataproc job status. |
| 351 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 352 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 353 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 354 | }, |
| 355 | ], |
| 356 | "placement": { # Cloud Dataproc job configuration. # [Required] Job information, including how, when, and where to run the job. |
| 357 | "clusterName": "A String", # [Required] The name of the cluster where the job will be submitted. |
| 358 | "clusterUuid": "A String", # [Output-only] A cluster UUID generated by the Dataproc service when the job is submitted. |
| 359 | }, |
| 360 | "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 job_id. |
| 361 | "projectId": "A String", # [Required] The ID of the Google Cloud Platform project that the job belongs to. |
| 362 | "jobId": "A String", # [Required] 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 512 characters. |
| 363 | }, |
| 364 | "sparkSqlJob": { # A Cloud Dataproc job for running Spark SQL queries. # Job is a SparkSql job. |
| 365 | "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. |
| 366 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`). |
| 367 | "a_key": "A String", |
| 368 | }, |
| 369 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to be added to the Spark CLASSPATH. |
| 370 | "A String", |
| 371 | ], |
| 372 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 373 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 374 | "A String", |
| 375 | ], |
| 376 | }, |
| 377 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 378 | "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' |
| 379 | "a_key": "A String", |
| 380 | }, |
| 381 | }, |
| 382 | "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. |
| 383 | "a_key": "A String", |
| 384 | }, |
| 385 | }, |
| 386 | "pigJob": { # A Cloud Dataproc job for running Pig queries on YARN. # Job is a Pig job. |
| 387 | "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. |
| 388 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`). |
| 389 | "a_key": "A String", |
| 390 | }, |
| 391 | "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. |
| 392 | "A String", |
| 393 | ], |
| 394 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 395 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 396 | "A String", |
| 397 | ], |
| 398 | }, |
| 399 | "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. |
| 400 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 401 | "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' |
| 402 | "a_key": "A String", |
| 403 | }, |
| 404 | }, |
| 405 | "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. |
| 406 | "a_key": "A String", |
| 407 | }, |
| 408 | }, |
| 409 | "driverOutputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdout of the job's driver program. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 410 | "labels": { # [Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given job. |
| 411 | "a_key": "A String", |
| 412 | }, |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 413 | "submittedBy": "A String", # [Output-only] The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@hostname. |
| 414 | "driverInputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdin of the job's driver program, only set if the job is interactive. |
| 415 | "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`. |
| 416 | "sparkJob": { # A Cloud Dataproc job for running Spark applications on YARN. # Job is a Spark job. |
| 417 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. |
| 418 | "A String", |
| 419 | ], |
| 420 | "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. |
| 421 | "A String", |
| 422 | ], |
| 423 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 424 | "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' |
| 425 | "a_key": "A String", |
| 426 | }, |
| 427 | }, |
| 428 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. |
| 429 | "A String", |
| 430 | ], |
| 431 | "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`. |
| 432 | "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. |
| 433 | "A String", |
| 434 | ], |
| 435 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class. |
| 436 | "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. |
| 437 | "a_key": "A String", |
| 438 | }, |
| 439 | }, |
| 440 | "yarnApplications": [ # [Output-only] The collection of YARN applications spun up by this job. |
| 441 | { # A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. |
| 442 | "progress": 3.14, # [Required] The numerical progress of the application, from 1 to 100. |
| 443 | "state": "A String", # [Required] The application state. |
| 444 | "name": "A String", # [Required] The application name. |
| 445 | "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. |
| 446 | }, |
| 447 | ], |
| 448 | "pysparkJob": { # A Cloud Dataproc job for running PySpark applications on YARN. # Job is a Pyspark job. |
| 449 | "mainPythonFileUri": "A String", # [Required] The Hadoop Compatible Filesystem (HCFS) URI of the main Python file to use as the driver. Must be a .py file. |
| 450 | "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. |
| 451 | "A String", |
| 452 | ], |
| 453 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. |
| 454 | "A String", |
| 455 | ], |
| 456 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 457 | "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' |
| 458 | "a_key": "A String", |
| 459 | }, |
| 460 | }, |
| 461 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. |
| 462 | "A String", |
| 463 | ], |
| 464 | "archiveUris": [ # [Optional] HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. |
| 465 | "A String", |
| 466 | ], |
| 467 | "pythonFileUris": [ # [Optional] HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. |
| 468 | "A String", |
| 469 | ], |
| 470 | "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. |
| 471 | "a_key": "A String", |
| 472 | }, |
| 473 | }, |
| 474 | "hiveJob": { # A Cloud Dataproc job for running Hive queries on YARN. # Job is a Hive job. |
| 475 | "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. |
| 476 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`). |
| 477 | "a_key": "A String", |
| 478 | }, |
| 479 | "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. |
| 480 | "A String", |
| 481 | ], |
| 482 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 483 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 484 | "A String", |
| 485 | ], |
| 486 | }, |
| 487 | "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. |
| 488 | "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. |
| 489 | "a_key": "A String", |
| 490 | }, |
| 491 | }, |
| 492 | "interactive": True or False, # [Optional] If set to `true`, the driver's stdin will be kept open and `driver_input_uri` will be set to provide a path at which additional input can be sent to the driver. |
| 493 | }</pre> |
| 494 | </div> |
| 495 | |
| 496 | <div class="method"> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 497 | <code class="details" id="list">list(projectId, pageSize=None, x__xgafv=None, jobStateMatcher=None, pageToken=None, clusterName=None, filter=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 498 | <pre>Lists jobs in a project. |
| 499 | |
| 500 | Args: |
| 501 | projectId: string, [Required] The ID of the Google Cloud Platform project that the job belongs to. (required) |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 502 | pageSize: integer, [Optional] The number of results to return in each response. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 503 | x__xgafv: string, V1 error format. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 504 | jobStateMatcher: string, [Optional] Specifies enumerated categories of jobs to list. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 505 | pageToken: string, [Optional] The page token, returned by a previous call, to request the next page of results. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 506 | clusterName: string, [Optional] If set, the returned jobs list includes only jobs that were submitted to the named cluster. |
| 507 | filter: string, [Optional] A filter constraining which jobs to list. Valid filters contain job state and label terms such as: labels.key1 = val1 AND (labels.k2 = val2 OR labels.k3 = val3) |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 508 | |
| 509 | Returns: |
| 510 | An object of the form: |
| 511 | |
| 512 | { # A list of jobs in a project. |
| 513 | "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 ListJobsRequest. |
| 514 | "jobs": [ # [Output-only] Jobs list. |
| 515 | { # A Cloud Dataproc job resource. |
| 516 | "status": { # Cloud Dataproc job status. # [Output-only] The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields. |
| 517 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 518 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 519 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 520 | }, |
| 521 | "hadoopJob": { # A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. # Job is a Hadoop job. |
| 522 | "jarFileUris": [ # [Optional] Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. |
| 523 | "A String", |
| 524 | ], |
| 525 | "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. |
| 526 | "A String", |
| 527 | ], |
| 528 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 529 | "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' |
| 530 | "a_key": "A String", |
| 531 | }, |
| 532 | }, |
| 533 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. |
| 534 | "A String", |
| 535 | ], |
| 536 | "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`. |
| 537 | "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. |
| 538 | "A String", |
| 539 | ], |
| 540 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (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' |
| 541 | "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. |
| 542 | "a_key": "A String", |
| 543 | }, |
| 544 | }, |
| 545 | "statusHistory": [ # [Output-only] The previous job status. |
| 546 | { # Cloud Dataproc job status. |
| 547 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 548 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 549 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 550 | }, |
| 551 | ], |
| 552 | "placement": { # Cloud Dataproc job configuration. # [Required] Job information, including how, when, and where to run the job. |
| 553 | "clusterName": "A String", # [Required] The name of the cluster where the job will be submitted. |
| 554 | "clusterUuid": "A String", # [Output-only] A cluster UUID generated by the Dataproc service when the job is submitted. |
| 555 | }, |
| 556 | "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 job_id. |
| 557 | "projectId": "A String", # [Required] The ID of the Google Cloud Platform project that the job belongs to. |
| 558 | "jobId": "A String", # [Required] 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 512 characters. |
| 559 | }, |
| 560 | "sparkSqlJob": { # A Cloud Dataproc job for running Spark SQL queries. # Job is a SparkSql job. |
| 561 | "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. |
| 562 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`). |
| 563 | "a_key": "A String", |
| 564 | }, |
| 565 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to be added to the Spark CLASSPATH. |
| 566 | "A String", |
| 567 | ], |
| 568 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 569 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 570 | "A String", |
| 571 | ], |
| 572 | }, |
| 573 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 574 | "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' |
| 575 | "a_key": "A String", |
| 576 | }, |
| 577 | }, |
| 578 | "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. |
| 579 | "a_key": "A String", |
| 580 | }, |
| 581 | }, |
| 582 | "pigJob": { # A Cloud Dataproc job for running Pig queries on YARN. # Job is a Pig job. |
| 583 | "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. |
| 584 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`). |
| 585 | "a_key": "A String", |
| 586 | }, |
| 587 | "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. |
| 588 | "A String", |
| 589 | ], |
| 590 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 591 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 592 | "A String", |
| 593 | ], |
| 594 | }, |
| 595 | "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. |
| 596 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 597 | "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' |
| 598 | "a_key": "A String", |
| 599 | }, |
| 600 | }, |
| 601 | "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. |
| 602 | "a_key": "A String", |
| 603 | }, |
| 604 | }, |
| 605 | "driverOutputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdout of the job's driver program. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 606 | "labels": { # [Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given job. |
| 607 | "a_key": "A String", |
| 608 | }, |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 609 | "submittedBy": "A String", # [Output-only] The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@hostname. |
| 610 | "driverInputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdin of the job's driver program, only set if the job is interactive. |
| 611 | "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`. |
| 612 | "sparkJob": { # A Cloud Dataproc job for running Spark applications on YARN. # Job is a Spark job. |
| 613 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. |
| 614 | "A String", |
| 615 | ], |
| 616 | "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. |
| 617 | "A String", |
| 618 | ], |
| 619 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 620 | "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' |
| 621 | "a_key": "A String", |
| 622 | }, |
| 623 | }, |
| 624 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. |
| 625 | "A String", |
| 626 | ], |
| 627 | "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`. |
| 628 | "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. |
| 629 | "A String", |
| 630 | ], |
| 631 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class. |
| 632 | "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. |
| 633 | "a_key": "A String", |
| 634 | }, |
| 635 | }, |
| 636 | "yarnApplications": [ # [Output-only] The collection of YARN applications spun up by this job. |
| 637 | { # A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. |
| 638 | "progress": 3.14, # [Required] The numerical progress of the application, from 1 to 100. |
| 639 | "state": "A String", # [Required] The application state. |
| 640 | "name": "A String", # [Required] The application name. |
| 641 | "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. |
| 642 | }, |
| 643 | ], |
| 644 | "pysparkJob": { # A Cloud Dataproc job for running PySpark applications on YARN. # Job is a Pyspark job. |
| 645 | "mainPythonFileUri": "A String", # [Required] The Hadoop Compatible Filesystem (HCFS) URI of the main Python file to use as the driver. Must be a .py file. |
| 646 | "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. |
| 647 | "A String", |
| 648 | ], |
| 649 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. |
| 650 | "A String", |
| 651 | ], |
| 652 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 653 | "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' |
| 654 | "a_key": "A String", |
| 655 | }, |
| 656 | }, |
| 657 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. |
| 658 | "A String", |
| 659 | ], |
| 660 | "archiveUris": [ # [Optional] HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. |
| 661 | "A String", |
| 662 | ], |
| 663 | "pythonFileUris": [ # [Optional] HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. |
| 664 | "A String", |
| 665 | ], |
| 666 | "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. |
| 667 | "a_key": "A String", |
| 668 | }, |
| 669 | }, |
| 670 | "hiveJob": { # A Cloud Dataproc job for running Hive queries on YARN. # Job is a Hive job. |
| 671 | "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. |
| 672 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`). |
| 673 | "a_key": "A String", |
| 674 | }, |
| 675 | "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. |
| 676 | "A String", |
| 677 | ], |
| 678 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 679 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 680 | "A String", |
| 681 | ], |
| 682 | }, |
| 683 | "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. |
| 684 | "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. |
| 685 | "a_key": "A String", |
| 686 | }, |
| 687 | }, |
| 688 | "interactive": True or False, # [Optional] If set to `true`, the driver's stdin will be kept open and `driver_input_uri` will be set to provide a path at which additional input can be sent to the driver. |
| 689 | }, |
| 690 | ], |
| 691 | }</pre> |
| 692 | </div> |
| 693 | |
| 694 | <div class="method"> |
| 695 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 696 | <pre>Retrieves the next page of results. |
| 697 | |
| 698 | Args: |
| 699 | previous_request: The request for the previous page. (required) |
| 700 | previous_response: The response from the request for the previous page. (required) |
| 701 | |
| 702 | Returns: |
| 703 | A request object that you can call 'execute()' on to request the next |
| 704 | page. Returns None if there are no more items in the collection. |
| 705 | </pre> |
| 706 | </div> |
| 707 | |
| 708 | <div class="method"> |
| 709 | <code class="details" id="submit">submit(projectId, body, x__xgafv=None)</code> |
| 710 | <pre>Submits a job to a cluster. |
| 711 | |
| 712 | Args: |
| 713 | projectId: string, [Required] The ID of the Google Cloud Platform project that the job belongs to. (required) |
| 714 | body: object, The request body. (required) |
| 715 | The object takes the form of: |
| 716 | |
| 717 | { # A request to submit a job. |
| 718 | "job": { # A Cloud Dataproc job resource. # [Required] The job resource. |
| 719 | "status": { # Cloud Dataproc job status. # [Output-only] The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields. |
| 720 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 721 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 722 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 723 | }, |
| 724 | "hadoopJob": { # A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. # Job is a Hadoop job. |
| 725 | "jarFileUris": [ # [Optional] Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. |
| 726 | "A String", |
| 727 | ], |
| 728 | "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. |
| 729 | "A String", |
| 730 | ], |
| 731 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 732 | "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' |
| 733 | "a_key": "A String", |
| 734 | }, |
| 735 | }, |
| 736 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. |
| 737 | "A String", |
| 738 | ], |
| 739 | "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`. |
| 740 | "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. |
| 741 | "A String", |
| 742 | ], |
| 743 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (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' |
| 744 | "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. |
| 745 | "a_key": "A String", |
| 746 | }, |
| 747 | }, |
| 748 | "statusHistory": [ # [Output-only] The previous job status. |
| 749 | { # Cloud Dataproc job status. |
| 750 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 751 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 752 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 753 | }, |
| 754 | ], |
| 755 | "placement": { # Cloud Dataproc job configuration. # [Required] Job information, including how, when, and where to run the job. |
| 756 | "clusterName": "A String", # [Required] The name of the cluster where the job will be submitted. |
| 757 | "clusterUuid": "A String", # [Output-only] A cluster UUID generated by the Dataproc service when the job is submitted. |
| 758 | }, |
| 759 | "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 job_id. |
| 760 | "projectId": "A String", # [Required] The ID of the Google Cloud Platform project that the job belongs to. |
| 761 | "jobId": "A String", # [Required] 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 512 characters. |
| 762 | }, |
| 763 | "sparkSqlJob": { # A Cloud Dataproc job for running Spark SQL queries. # Job is a SparkSql job. |
| 764 | "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. |
| 765 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`). |
| 766 | "a_key": "A String", |
| 767 | }, |
| 768 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to be added to the Spark CLASSPATH. |
| 769 | "A String", |
| 770 | ], |
| 771 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 772 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 773 | "A String", |
| 774 | ], |
| 775 | }, |
| 776 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 777 | "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' |
| 778 | "a_key": "A String", |
| 779 | }, |
| 780 | }, |
| 781 | "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. |
| 782 | "a_key": "A String", |
| 783 | }, |
| 784 | }, |
| 785 | "pigJob": { # A Cloud Dataproc job for running Pig queries on YARN. # Job is a Pig job. |
| 786 | "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. |
| 787 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`). |
| 788 | "a_key": "A String", |
| 789 | }, |
| 790 | "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. |
| 791 | "A String", |
| 792 | ], |
| 793 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 794 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 795 | "A String", |
| 796 | ], |
| 797 | }, |
| 798 | "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. |
| 799 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 800 | "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' |
| 801 | "a_key": "A String", |
| 802 | }, |
| 803 | }, |
| 804 | "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. |
| 805 | "a_key": "A String", |
| 806 | }, |
| 807 | }, |
| 808 | "driverOutputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdout of the job's driver program. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 809 | "labels": { # [Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given job. |
| 810 | "a_key": "A String", |
| 811 | }, |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 812 | "submittedBy": "A String", # [Output-only] The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@hostname. |
| 813 | "driverInputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdin of the job's driver program, only set if the job is interactive. |
| 814 | "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`. |
| 815 | "sparkJob": { # A Cloud Dataproc job for running Spark applications on YARN. # Job is a Spark job. |
| 816 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. |
| 817 | "A String", |
| 818 | ], |
| 819 | "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. |
| 820 | "A String", |
| 821 | ], |
| 822 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 823 | "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' |
| 824 | "a_key": "A String", |
| 825 | }, |
| 826 | }, |
| 827 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. |
| 828 | "A String", |
| 829 | ], |
| 830 | "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`. |
| 831 | "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. |
| 832 | "A String", |
| 833 | ], |
| 834 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class. |
| 835 | "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. |
| 836 | "a_key": "A String", |
| 837 | }, |
| 838 | }, |
| 839 | "yarnApplications": [ # [Output-only] The collection of YARN applications spun up by this job. |
| 840 | { # A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. |
| 841 | "progress": 3.14, # [Required] The numerical progress of the application, from 1 to 100. |
| 842 | "state": "A String", # [Required] The application state. |
| 843 | "name": "A String", # [Required] The application name. |
| 844 | "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. |
| 845 | }, |
| 846 | ], |
| 847 | "pysparkJob": { # A Cloud Dataproc job for running PySpark applications on YARN. # Job is a Pyspark job. |
| 848 | "mainPythonFileUri": "A String", # [Required] The Hadoop Compatible Filesystem (HCFS) URI of the main Python file to use as the driver. Must be a .py file. |
| 849 | "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. |
| 850 | "A String", |
| 851 | ], |
| 852 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. |
| 853 | "A String", |
| 854 | ], |
| 855 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 856 | "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' |
| 857 | "a_key": "A String", |
| 858 | }, |
| 859 | }, |
| 860 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. |
| 861 | "A String", |
| 862 | ], |
| 863 | "archiveUris": [ # [Optional] HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. |
| 864 | "A String", |
| 865 | ], |
| 866 | "pythonFileUris": [ # [Optional] HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. |
| 867 | "A String", |
| 868 | ], |
| 869 | "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. |
| 870 | "a_key": "A String", |
| 871 | }, |
| 872 | }, |
| 873 | "hiveJob": { # A Cloud Dataproc job for running Hive queries on YARN. # Job is a Hive job. |
| 874 | "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. |
| 875 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`). |
| 876 | "a_key": "A String", |
| 877 | }, |
| 878 | "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. |
| 879 | "A String", |
| 880 | ], |
| 881 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 882 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 883 | "A String", |
| 884 | ], |
| 885 | }, |
| 886 | "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. |
| 887 | "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. |
| 888 | "a_key": "A String", |
| 889 | }, |
| 890 | }, |
| 891 | "interactive": True or False, # [Optional] If set to `true`, the driver's stdin will be kept open and `driver_input_uri` will be set to provide a path at which additional input can be sent to the driver. |
| 892 | }, |
| 893 | } |
| 894 | |
| 895 | x__xgafv: string, V1 error format. |
| 896 | |
| 897 | Returns: |
| 898 | An object of the form: |
| 899 | |
| 900 | { # A Cloud Dataproc job resource. |
| 901 | "status": { # Cloud Dataproc job status. # [Output-only] The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields. |
| 902 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 903 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 904 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 905 | }, |
| 906 | "hadoopJob": { # A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. # Job is a Hadoop job. |
| 907 | "jarFileUris": [ # [Optional] Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. |
| 908 | "A String", |
| 909 | ], |
| 910 | "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. |
| 911 | "A String", |
| 912 | ], |
| 913 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 914 | "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' |
| 915 | "a_key": "A String", |
| 916 | }, |
| 917 | }, |
| 918 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. |
| 919 | "A String", |
| 920 | ], |
| 921 | "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`. |
| 922 | "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. |
| 923 | "A String", |
| 924 | ], |
| 925 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (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' |
| 926 | "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. |
| 927 | "a_key": "A String", |
| 928 | }, |
| 929 | }, |
| 930 | "statusHistory": [ # [Output-only] The previous job status. |
| 931 | { # Cloud Dataproc job status. |
| 932 | "state": "A String", # [Required] A state message specifying the overall job state. |
| 933 | "stateStartTime": "A String", # [Output-only] The time when this state was entered. |
| 934 | "details": "A String", # [Optional] Job state details, such as an error description if the state is ERROR. |
| 935 | }, |
| 936 | ], |
| 937 | "placement": { # Cloud Dataproc job configuration. # [Required] Job information, including how, when, and where to run the job. |
| 938 | "clusterName": "A String", # [Required] The name of the cluster where the job will be submitted. |
| 939 | "clusterUuid": "A String", # [Output-only] A cluster UUID generated by the Dataproc service when the job is submitted. |
| 940 | }, |
| 941 | "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 job_id. |
| 942 | "projectId": "A String", # [Required] The ID of the Google Cloud Platform project that the job belongs to. |
| 943 | "jobId": "A String", # [Required] 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 512 characters. |
| 944 | }, |
| 945 | "sparkSqlJob": { # A Cloud Dataproc job for running Spark SQL queries. # Job is a SparkSql job. |
| 946 | "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. |
| 947 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`). |
| 948 | "a_key": "A String", |
| 949 | }, |
| 950 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to be added to the Spark CLASSPATH. |
| 951 | "A String", |
| 952 | ], |
| 953 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 954 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 955 | "A String", |
| 956 | ], |
| 957 | }, |
| 958 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 959 | "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' |
| 960 | "a_key": "A String", |
| 961 | }, |
| 962 | }, |
| 963 | "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. |
| 964 | "a_key": "A String", |
| 965 | }, |
| 966 | }, |
| 967 | "pigJob": { # A Cloud Dataproc job for running Pig queries on YARN. # Job is a Pig job. |
| 968 | "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. |
| 969 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`). |
| 970 | "a_key": "A String", |
| 971 | }, |
| 972 | "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. |
| 973 | "A String", |
| 974 | ], |
| 975 | "queryList": { # A list of queries to run on a cluster. # A list of queries. |
| 976 | "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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 977 | "A String", |
| 978 | ], |
| 979 | }, |
| 980 | "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. |
| 981 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 982 | "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' |
| 983 | "a_key": "A String", |
| 984 | }, |
| 985 | }, |
| 986 | "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. |
| 987 | "a_key": "A String", |
| 988 | }, |
| 989 | }, |
| 990 | "driverOutputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdout of the job's driver program. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame^] | 991 | "labels": { # [Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given job. |
| 992 | "a_key": "A String", |
| 993 | }, |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 994 | "submittedBy": "A String", # [Output-only] The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@hostname. |
| 995 | "driverInputResourceUri": "A String", # [Output-only] A URI pointing to the location of the stdin of the job's driver program, only set if the job is interactive. |
| 996 | "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`. |
| 997 | "sparkJob": { # A Cloud Dataproc job for running Spark applications on YARN. # Job is a Spark job. |
| 998 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. |
| 999 | "A String", |
| 1000 | ], |
| 1001 | "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. |
| 1002 | "A String", |
| 1003 | ], |
| 1004 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 1005 | "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' |
| 1006 | "a_key": "A String", |
| 1007 | }, |
| 1008 | }, |
| 1009 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. |
| 1010 | "A String", |
| 1011 | ], |
| 1012 | "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`. |
| 1013 | "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. |
| 1014 | "A String", |
| 1015 | ], |
| 1016 | "mainJarFileUri": "A String", # The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class. |
| 1017 | "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. |
| 1018 | "a_key": "A String", |
| 1019 | }, |
| 1020 | }, |
| 1021 | "yarnApplications": [ # [Output-only] The collection of YARN applications spun up by this job. |
| 1022 | { # A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. |
| 1023 | "progress": 3.14, # [Required] The numerical progress of the application, from 1 to 100. |
| 1024 | "state": "A String", # [Required] The application state. |
| 1025 | "name": "A String", # [Required] The application name. |
| 1026 | "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. |
| 1027 | }, |
| 1028 | ], |
| 1029 | "pysparkJob": { # A Cloud Dataproc job for running PySpark applications on YARN. # Job is a Pyspark job. |
| 1030 | "mainPythonFileUri": "A String", # [Required] The Hadoop Compatible Filesystem (HCFS) URI of the main Python file to use as the driver. Must be a .py file. |
| 1031 | "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. |
| 1032 | "A String", |
| 1033 | ], |
| 1034 | "jarFileUris": [ # [Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. |
| 1035 | "A String", |
| 1036 | ], |
| 1037 | "loggingConfiguration": { # The runtime logging configuration of the job. # [Optional] The runtime log configuration for job execution. |
| 1038 | "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' |
| 1039 | "a_key": "A String", |
| 1040 | }, |
| 1041 | }, |
| 1042 | "fileUris": [ # [Optional] HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. |
| 1043 | "A String", |
| 1044 | ], |
| 1045 | "archiveUris": [ # [Optional] HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. |
| 1046 | "A String", |
| 1047 | ], |
| 1048 | "pythonFileUris": [ # [Optional] HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. |
| 1049 | "A String", |
| 1050 | ], |
| 1051 | "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. |
| 1052 | "a_key": "A String", |
| 1053 | }, |
| 1054 | }, |
| 1055 | "hiveJob": { # A Cloud Dataproc job for running Hive queries on YARN. # Job is a Hive job. |
| 1056 | "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. |
| 1057 | "scriptVariables": { # [Optional] Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`). |
| 1058 | "a_key": "A String", |
| 1059 | }, |
| 1060 | "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. |
| 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: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } |
| 1065 | "A String", |
| 1066 | ], |
| 1067 | }, |
| 1068 | "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. |
| 1069 | "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. |
| 1070 | "a_key": "A String", |
| 1071 | }, |
| 1072 | }, |
| 1073 | "interactive": True or False, # [Optional] If set to `true`, the driver's stdin will be kept open and `driver_input_uri` will be set to provide a path at which additional input can be sent to the driver. |
| 1074 | }</pre> |
| 1075 | </div> |
| 1076 | |
| 1077 | </body></html> |