az synapse spark statement
Manage Synapse Spark statements.
Commands
Name | Description | Type | Status |
---|---|---|---|
az synapse spark statement cancel |
Cancel a Spark statement. |
Core | GA |
az synapse spark statement invoke |
Invoke a Spark statement. |
Core | GA |
az synapse spark statement list |
List all Spark statements. |
Core | GA |
az synapse spark statement show |
Get a Spark statement. |
Core | GA |
az synapse spark statement cancel
Cancel a Spark statement.
az synapse spark statement cancel --livy-id
--session-id
--spark-pool-name
--workspace-name
[--yes]
Examples
Cancel a Spark statement.
az synapse spark statement cancel --livy-id 1 --session-id 11 --workspace-name testsynapseworkspace \
--spark-pool-name testsparkpool
Required Parameters
The id of the statement.
Property | Value |
---|---|
Parameter group: | Spark statement Arguments |
The id of Spark session.
The name of the Spark pool.
The name of the workspace.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse spark statement invoke
Invoke a Spark statement.
az synapse spark statement invoke --code
--language {CSharp, PySpark, Python, SQL, Scala, Spark, SparkDotNet}
--session-id
--spark-pool-name
--workspace-name
Examples
Invoke a Spark statement.
az synapse spark statement invoke --session-id 1 --workspace-name testsynapseworkspace \
--spark-pool-name testsparkpool --code "print('hello, Azure CLI')" --language pyspark
Submit a Spark statement by reading code content from file.
az synapse spark statement invoke --session-id 1 --workspace-name testsynapseworkspace \
--spark-pool-name testsparkpool --code @file-path --language pyspark
Required Parameters
The code of Spark statement. This is either the code contents or use @<file path>
to load the content from a file.
The language of Spark statement.
Property | Value |
---|---|
Accepted values: | CSharp, PySpark, Python, SQL, Scala, Spark, SparkDotNet |
The id of Spark session.
The name of the Spark pool.
The name of the workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse spark statement list
List all Spark statements.
az synapse spark statement list --session-id
--spark-pool-name
--workspace-name
Examples
List all Spark statements.
az synapse spark statement list --session-id 11 --workspace-name testsynapseworkspace \
--spark-pool-name testsparkpool
Required Parameters
The id of Spark session.
The name of the Spark pool.
The name of the workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse spark statement show
Get a Spark statement.
az synapse spark statement show --livy-id
--session-id
--spark-pool-name
--workspace-name
Examples
Get a Spark statement.
az synapse spark statement show --livy-id 1 --session-id 11 --workspace-name testsynapseworkspace \
--spark-pool-name testsparkpool
Required Parameters
The id of the statement.
Property | Value |
---|---|
Parameter group: | Spark statement Arguments |
The id of Spark session.
The name of the Spark pool.
The name of the workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |