docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/dataproc_v1.projects.regions.jobs.html b/docs/dyn/dataproc_v1.projects.regions.jobs.html
index 132e52a..8ab644b 100644
--- a/docs/dyn/dataproc_v1.projects.regions.jobs.html
+++ b/docs/dyn/dataproc_v1.projects.regions.jobs.html
@@ -87,7 +87,7 @@
<code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
<p class="toc_element">
- <code><a href="#list">list(projectId, region, clusterName=None, filter=None, jobStateMatcher=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
+ <code><a href="#list">list(projectId, region, pageToken=None, pageSize=None, clusterName=None, filter=None, jobStateMatcher=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists regions/{region}/jobs in a project.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
@@ -97,7 +97,7 @@
<p class="firstline">Updates a job in a project.</p>
<p class="toc_element">
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
-<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED</p>
+<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.</p>
<p class="toc_element">
<code><a href="#submit">submit(projectId, region, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Submits a job to a cluster.</p>
@@ -131,76 +131,9 @@
An object of the form:
{ # A Dataproc job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -215,6 +148,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -225,12 +159,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -245,23 +194,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -277,22 +226,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -375,16 +309,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
}</pre>
</div>
@@ -429,76 +429,9 @@
An object of the form:
{ # A Dataproc job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -513,6 +446,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -523,12 +457,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -543,23 +492,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -575,22 +524,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -673,16 +607,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
}</pre>
</div>
@@ -696,8 +696,8 @@
The object takes the form of:
{ # Request message for GetIamPolicy method.
- "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.
- "requestedPolicyVersion": 42, # Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
+ "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy.
+ "requestedPolicyVersion": 42, # Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
},
}
@@ -709,7 +709,7 @@
Returns:
An object of the form:
- { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.Optionally, a binding can specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both.JSON example:
+ { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
# {
# "bindings": [
# {
@@ -723,7 +723,9 @@
# },
# {
# "role": "roles/resourcemanager.organizationViewer",
- # "members": ["user:eve@example.com"],
+ # "members": [
+ # "user:eve@example.com"
+ # ],
# "condition": {
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@@ -752,10 +754,15 @@
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
+ "etag": "A String", # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
+ "version": 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
+ # Getting a policy that includes a conditional role binding
+ # Adding a conditional role binding to a policy
+ # Changing a conditional role binding in a policy
+ # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
"bindings": [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
{ # Associates members with a role.
- "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
- "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
@@ -789,29 +796,24 @@
# domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
"A String",
],
+ "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
},
],
- "etag": "A String", # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
- "version": 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
- # Getting a policy that includes a conditional role binding
- # Adding a conditional role binding to a policy
- # Changing a conditional role binding in a policy
- # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.
}</pre>
</div>
<div class="method">
- <code class="details" id="list">list(projectId, region, clusterName=None, filter=None, jobStateMatcher=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
+ <code class="details" id="list">list(projectId, region, pageToken=None, pageSize=None, clusterName=None, filter=None, jobStateMatcher=None, x__xgafv=None)</code>
<pre>Lists regions/{region}/jobs in a project.
Args:
projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
region: string, Required. The Dataproc region in which to handle the request. (required)
+ pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results.
+ pageSize: integer, Optional. The number of results to return in each response.
clusterName: string, Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.
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 NON_ACTIVE. 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 = *
jobStateMatcher: string, Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.
- pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results.
- pageSize: integer, Optional. The number of results to return in each response.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
@@ -823,76 +825,9 @@
{ # A list of jobs in a project.
"jobs": [ # Output only. Jobs list.
{ # A Dataproc job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -907,6 +842,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -917,12 +853,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -937,23 +888,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -969,22 +920,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -1067,16 +1003,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
},
],
"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>.
@@ -1109,76 +1111,9 @@
The object takes the form of:
{ # A Dataproc job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -1193,6 +1128,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -1203,12 +1139,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -1223,23 +1174,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -1255,22 +1206,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -1353,16 +1289,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
}
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.
@@ -1375,76 +1377,9 @@
An object of the form:
{ # A Dataproc job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -1459,6 +1394,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -1469,12 +1405,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -1489,23 +1440,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -1521,22 +1472,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -1619,22 +1555,88 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
}</pre>
</div>
<div class="method">
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
- <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+ <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Args:
resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
@@ -1642,7 +1644,7 @@
The object takes the form of:
{ # Request message for SetIamPolicy method.
- "policy": { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.Optionally, a binding can specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both.JSON example: # REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
+ "policy": { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: # REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
# {
# "bindings": [
# {
@@ -1656,7 +1658,9 @@
# },
# {
# "role": "roles/resourcemanager.organizationViewer",
- # "members": ["user:eve@example.com"],
+ # "members": [
+ # "user:eve@example.com"
+ # ],
# "condition": {
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@@ -1685,10 +1689,15 @@
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
+ "etag": "A String", # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
+ "version": 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
+ # Getting a policy that includes a conditional role binding
+ # Adding a conditional role binding to a policy
+ # Changing a conditional role binding in a policy
+ # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
"bindings": [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
{ # Associates members with a role.
- "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
- "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
@@ -1722,14 +1731,9 @@
# domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
"A String",
],
+ "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
},
],
- "etag": "A String", # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
- "version": 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
- # Getting a policy that includes a conditional role binding
- # Adding a conditional role binding to a policy
- # Changing a conditional role binding in a policy
- # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.
},
}
@@ -1741,7 +1745,7 @@
Returns:
An object of the form:
- { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.Optionally, a binding can specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both.JSON example:
+ { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
# {
# "bindings": [
# {
@@ -1755,7 +1759,9 @@
# },
# {
# "role": "roles/resourcemanager.organizationViewer",
- # "members": ["user:eve@example.com"],
+ # "members": [
+ # "user:eve@example.com"
+ # ],
# "condition": {
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@@ -1784,10 +1790,15 @@
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
+ "etag": "A String", # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
+ "version": 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
+ # Getting a policy that includes a conditional role binding
+ # Adding a conditional role binding to a policy
+ # Changing a conditional role binding in a policy
+ # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
"bindings": [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
{ # Associates members with a role.
- "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
- "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
@@ -1821,14 +1832,9 @@
# domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
"A String",
],
+ "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
},
],
- "etag": "A String", # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
- "version": 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
- # Getting a policy that includes a conditional role binding
- # Adding a conditional role binding to a policy
- # Changing a conditional role binding in a policy
- # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.
}</pre>
</div>
@@ -1844,76 +1850,9 @@
{ # A request to submit a job.
"job": { # A Dataproc job resource. # Required. The job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -1928,6 +1867,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -1938,12 +1878,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -1958,23 +1913,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -1990,22 +1945,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -2088,16 +2028,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
},
"requestId": "A String", # Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest requests with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
}
@@ -2111,76 +2117,9 @@
An object of the form:
{ # A Dataproc job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -2195,6 +2134,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -2205,12 +2145,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -2225,23 +2180,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -2257,22 +2212,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -2355,16 +2295,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
}</pre>
</div>
@@ -2380,76 +2386,9 @@
{ # A request to submit a job.
"job": { # A Dataproc job resource. # Required. The job resource.
- "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.
- "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
- "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
- "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.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "clientTags": [ # Optional. Presto client tags to attach to this query
- "A String",
- ],
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
- "a_key": "A String",
- },
- },
- "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
- "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.
- },
- "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
- "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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
- "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.
- "A String",
- ],
- "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
- "a_key": "A String",
- },
- "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
- "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'
- "a_key": "A String",
- },
- },
- "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
- "a_key": "A String",
- },
- },
"jobUuid": "A String", # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
"hiveJob": { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
"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.
- "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"queryList": { # A list of queries to run on a cluster. # A list of queries.
"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": {
@@ -2464,6 +2403,7 @@
"A String",
],
},
+ "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries.
"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.
"A String",
],
@@ -2474,12 +2414,27 @@
"a_key": "A String",
},
},
+ "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"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.
"a_key": "A String",
},
- "done": True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
"driverOutputResourceUri": "A String", # Output only. A URI pointing to the location of the stdout of the job's driver program.
"sparkSqlJob": { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
"scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
"a_key": "A String",
},
@@ -2494,23 +2449,23 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
"a_key": "A String",
},
- "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
- "queryList": { # A list of queries to run on a cluster. # A list of queries.
- "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",
- # ]
- # }
- # }
- "A String",
- ],
- },
},
+ "statusHistory": [ # Output only. The previous job status.
+ { # Dataproc job status.
+ "state": "A String", # Output only. A state message specifying the overall job state.
+ "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
+ "stateStartTime": "A String", # Output only. The time when this state was entered.
+ "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
+ },
+ ],
"sparkJob": { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
+ "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.
+ "A String",
+ ],
+ "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
+ "A String",
+ ],
+ "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.
"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.
"A String",
],
@@ -2526,22 +2481,7 @@
"properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
"a_key": "A String",
},
- "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.
- "A String",
- ],
- "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
- "A String",
- ],
- "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.
},
- "statusHistory": [ # Output only. The previous job status.
- { # Dataproc job status.
- "state": "A String", # Output only. A state message specifying the overall job state.
- "details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
- "stateStartTime": "A String", # Output only. The time when this state was entered.
- "substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
- },
- ],
"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.
{ # 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.
"progress": 3.14, # Required. The numerical progress of the application, from 1 to 100.
@@ -2624,16 +2564,82 @@
"A String",
],
},
- "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
- "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
- "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
- },
"status": { # 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.
"state": "A String", # Output only. A state message specifying the overall job state.
"details": "A String", # Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.
"stateStartTime": "A String", # Output only. The time when this state was entered.
"substate": "A String", # Output only. Additional state information, which includes status reported by the agent.
},
+ "placement": { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
+ "clusterName": "A String", # Required. The name of the cluster where the job will be submitted.
+ "clusterUuid": "A String", # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
+ },
+ "prestoJob": { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
+ "outputFormat": "A String", # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "clientTags": [ # Optional. Presto client tags to attach to this query
+ "A String",
+ ],
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
+ "a_key": "A String",
+ },
+ },
+ "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.
+ "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration.
+ "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.
+ },
+ "pigJob": { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
+ "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
+ "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'
+ "a_key": "A String",
+ },
+ },
+ "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the 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.
+ "a_key": "A String",
+ },
+ "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.
+ "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries.
+ "queryList": { # A list of queries to run on a cluster. # A list of queries.
+ "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",
+ # ]
+ # }
+ # }
+ "A String",
+ ],
+ },
+ "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.
+ "A String",
+ ],
+ "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
+ "a_key": "A String",
+ },
+ },
},
"requestId": "A String", # Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest requests with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
}
@@ -2647,6 +2653,9 @@
An object of the form:
{ # This resource represents a long-running operation that is the result of a network API call.
+ "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+ "a_key": "", # Properties of the object. Contains field @type with type URL.
+ },
"done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
"a_key": "", # Properties of the object. Contains field @type with type URL.
@@ -2661,9 +2670,6 @@
},
],
},
- "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- "a_key": "", # Properties of the object. Contains field @type with type URL.
- },
}</pre>
</div>