| title | azdata bdc spark batch reference |
|---|---|
| titleSuffix | SQL Server Big Data Clusters |
| description | Reference article for azdata bdc spark batch commands. |
| author | MikeRayMSFT |
| ms.author | mikeray |
| ms.reviewer | seanw |
| ms.date | 10/05/2021 |
| ms.prod | sql |
| ms.technology | big-data-cluster |
| ms.topic | reference |
Applies to [!INCLUDE azure-data-cli-azdata]
The following article provides reference for the sql commands in the azdata tool. For more information about other azdata commands, see azdata reference
| Command | Description |
|---|---|
| azdata bdc spark batch create | Create a new Spark batch. |
| azdata bdc spark batch list | List all the batches in Spark. |
| azdata bdc spark batch info | Get information about an active Spark batch. |
| azdata bdc spark batch log | Get execution logs for a Spark batch. |
| azdata bdc spark batch state | Get execution state for a Spark batch. |
| azdata bdc spark batch delete | Delete a Spark batch. |
This creates a new batch Spark job that executes the provided code.
azdata bdc spark batch create --file -f
[--class-name -c]
[--arguments -a]
[--jar-files -j]
[--py-files -p]
[--files]
[--driver-memory]
[--driver-cores]
[--executor-memory]
[--executor-cores]
[--executor-count]
[--archives]
[--queue -q]
[--name -n]
[--config]Create a new Spark batch.
azdata spark batch create --code "2+2"Path to file to execute.
Name of the class to execute when passing in one or more jar files.
List of arguments. To pass in a list JSON encode the values. Example: '["entry1", "entry2"]'.
List of jar file paths. To pass in a list JSON encode the values. Example: '["entry1", "entry2"]'.
List of python file paths. To pass in a list JSON encode the values. Example: '["entry1", "entry2"]'.
List of file paths. To pass in a list JSON encode the values. Example: '["entry1", "entry2"]'.
Amount of memory to allocate to the driver. Specify units as part of value. Example 512M or 2G.
Amount of CPU cores to allocate to the driver.
Amount of memory to allocate to the executor. Specify units as part of value. Example 512M or 2G.
Amount of CPU cores to allocate to the executor.
Number of instances of the executor to run.
List of archives paths. To pass in a list JSON encode the values. Example: '["entry1", "entry2"]'.
Name of the Spark queue to execute the session in.
Name of the Spark session.
List of name value pairs containing Spark configuration values. Encoded as JSON dictionary. Example: '{"name":"value", "name2":"value2"}'.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
List all the batches in Spark.
azdata bdc spark batch list List all the active batches.
azdata spark batch listIncrease logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This gets the information for an Spark batch with the given ID. The batch id is returned from 'spark batch create'.
azdata bdc spark batch info --batch-id -i
Get batch info for batch with ID of 0.
azdata spark batch info --batch-id 0Spark batch ID number.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This gets the batch log entries for a Spark batch with the given ID. The batch id is returned from 'spark batch create'.
azdata bdc spark batch log --batch-id -i
Get batch log for batch with ID of 0.
azdata spark batch log --batch-id 0Spark batch ID number.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This gets the batch state for a Spark batch with the given ID. The batch id is returned from 'spark batch create'.
azdata bdc spark batch state --batch-id -i
Get batch state for batch with ID of 0.
azdata spark batch state --batch-id 0Spark batch ID number.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This deletes a Spark batch. The batch id is returned from 'spark batch create'.
azdata bdc spark batch delete --batch-id -i
Delete a batch.
azdata spark batch delete --batch-id 0Spark batch ID number.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
For more information about other azdata commands, see azdata reference.
For more information about how to install the azdata tool, see Install azdata.