az synapse spark session

Manage Synapse Spark sessions.

Commands

az synapse spark session cancel

Cancel a Spark session.

az synapse spark session create

Create a Spark session.

az synapse spark session list

List all Spark sessions.

az synapse spark session reset-timeout

Reset a Spark session timeout time.

az synapse spark session show

Get a Spark session.

az synapse spark session cancel

Cancel a Spark session.

az synapse spark session cancel --livy-id
                                --spark-pool-name
                                --workspace-name
                                [--subscription]
                                [--yes]

Examples

Cancel a Spark session.

az synapse spark session cancel  --livy-id 1 --workspace-name testsynapseworkspace --spark-pool-name testsparkpool

Required Parameters

--livy-id

The id of the Spark session job.

--spark-pool-name

The name of the Spark pool.

--workspace-name

The name of the workspace.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az synapse spark session create

Create a Spark session.

az synapse spark session create --executor-size {Large, Medium, Small}
                                --executors
                                --name
                                --spark-pool-name
                                --workspace-name
                                [--configuration]
                                [--reference-files]
                                [--subscription]
                                [--tags]

Examples

Create a Spark session.

az synapse spark session create --name testsession  --workspace-name testsynapseworkspace \
--spark-pool-name testsparkpool --executor-size Small --executors 4

Required Parameters

--executor-size

The executor size.

accepted values: Large, Medium, Small
--executors

The number of executors.

--name -n

The Spark session name.

--spark-pool-name

The name of the Spark pool.

--workspace-name

The name of the workspace.

Optional Parameters

--configuration

The configuration of Spark session.

--reference-files

Additional files used for reference in the main definition file.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az synapse spark session list

List all Spark sessions.

az synapse spark session list --spark-pool-name
                              --workspace-name
                              [--from-index]
                              [--query-examples]
                              [--size]
                              [--subscription]

Examples

List all Spark sessions.

az synapse spark session list --workspace-name testsynapseworkspace --spark-pool-name testsparkpool

Required Parameters

--spark-pool-name

The name of the Spark pool.

--workspace-name

The name of the workspace.

Optional Parameters

--from-index

Optional parameter specifying which index the list should begin from.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--size

The size of the returned list.By default it is 20 and that is the maximum.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az synapse spark session reset-timeout

Reset a Spark session timeout time.

az synapse spark session reset-timeout --livy-id
                                       --spark-pool-name
                                       --workspace-name
                                       [--subscription]

Examples

Reset a Spark session's timeout time.

az synapse spark session reset-timeout --livy-id 1 --workspace-name testsynapseworkspace --spark-pool-name testsparkpool

Required Parameters

--livy-id

The id of the Spark session job.

--spark-pool-name

The name of the Spark pool.

--workspace-name

The name of the workspace.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az synapse spark session show

Get a Spark session.

az synapse spark session show --livy-id
                              --spark-pool-name
                              --workspace-name
                              [--query-examples]
                              [--subscription]

Examples

Get a Spark session.

az synapse spark session show --livy-id 1 --workspace-name testsynapseworkspace --spark-pool-name testsparkpool

Required Parameters

--livy-id

The id of the Spark session job.

--spark-pool-name

The name of the Spark pool.

--workspace-name

The name of the workspace.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.