Resource: Batch
A representation of a batch workload in the service.
JSON representation |
---|
{ "name": string, "uuid": string, "createTime": string, "runtimeInfo": { object ( |
Fields | |
---|---|
name |
Output only. The resource name of the batch. |
uuid |
Output only. A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch. |
create |
Output only. The time when the batch was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
runtime |
Output only. Runtime information about batch execution. |
state |
Output only. The state of the batch. |
state |
Output only. Batch state details, such as a failure description if the state is |
state |
Output only. The time when the batch entered a current state. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
creator |
Output only. The email address of the user who created the batch. |
labels |
Optional. The labels to associate with this batch. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch. An object containing a list of |
runtime |
Optional. Runtime configuration for the batch execution. |
environment |
Optional. Environment configuration for the batch execution. |
operation |
Output only. The resource name of the operation associated with this batch. |
state |
Output only. Historical state information for the batch. |
Union field batch_config . The application/framework-specific portion of the batch configuration. batch_config can be only one of the following: |
|
pyspark |
Optional. PySpark batch config. |
spark |
Optional. Spark batch config. |
spark |
Optional. SparkR batch config. |
spark |
Optional. SparkSql batch config. |
PySparkBatch
A configuration for running an Apache PySpark batch workload.
JSON representation |
---|
{ "mainPythonFileUri": string, "args": [ string ], "pythonFileUris": [ string ], "jarFileUris": [ string ], "fileUris": [ string ], "archiveUris": [ string ] } |
Fields | |
---|---|
main |
Required. The HCFS URI of the main Python file to use as the Spark driver. Must be a .py file. |
args[] |
Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as |
python |
Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: |
jar |
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks. |
file |
Optional. HCFS URIs of files to be placed in the working directory of each executor. |
archive |
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: |
SparkBatch
A configuration for running an Apache Spark batch workload.
JSON representation |
---|
{ "args": [ string ], "jarFileUris": [ string ], "fileUris": [ string ], "archiveUris": [ string ], // Union field |
Fields | |
---|---|
args[] |
Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as |
jar |
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks. |
file |
Optional. HCFS URIs of files to be placed in the working directory of each executor. |
archive |
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: |
Union field driver . The specification of the main method to call to drive the Spark workload. Specify either the jar file that contains the main class or the main class name. To pass both a main jar and a main class in that jar, add the jar to jar_file_uris , and then specify the main class name in main_class . driver can be only one of the following: |
|
main |
Optional. The HCFS URI of the jar file that contains the main class. |
main |
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in |
SparkRBatch
A configuration for running an Apache SparkR batch workload.
JSON representation |
---|
{ "mainRFileUri": string, "args": [ string ], "fileUris": [ string ], "archiveUris": [ string ] } |
Fields | |
---|---|
main |
Required. The HCFS URI of the main R file to use as the driver. Must be a |
args[] |
Optional. The arguments to pass to the Spark driver. Do not include arguments that can be set as batch properties, such as |
file |
Optional. HCFS URIs of files to be placed in the working directory of each executor. |
archive |
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: |
SparkSqlBatch
A configuration for running Apache Spark SQL queries as a batch workload.
JSON representation |
---|
{ "queryFileUri": string, "queryVariables": { string: string, ... }, "jarFileUris": [ string ] } |
Fields | |
---|---|
query |
Required. The HCFS URI of the script that contains Spark SQL queries to execute. |
query |
Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: An object containing a list of |
jar |
Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. |
State
The batch state.
Enums | |
---|---|
STATE_UNSPECIFIED |
The batch state is unknown. |
PENDING |
The batch is created before running. |
RUNNING |
The batch is running. |
CANCELLING |
The batch is cancelling. |
CANCELLED |
The batch cancellation was successful. |
SUCCEEDED |
The batch completed successfully. |
FAILED |
The batch is no longer running due to an error. |
StateHistory
Historical state information.
JSON representation |
---|
{
"state": enum ( |
Fields | |
---|---|
state |
Output only. The state of the batch at this point in history. |
state |
Output only. Details about the state at this point in history. |
state |
Output only. The time when the batch entered the historical state. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Methods |
|
---|---|
|
Creates a batch workload that executes asynchronously. |
|
Deletes the batch workload resource. |
|
Gets the batch workload resource representation. |
|
Lists batch workloads. |