Share via


SparkBatch class

Class representing a SparkBatch.

Constructors

SparkBatch(SynapseClientContext)

Create a SparkBatch.

Constructor Details

SparkBatch(SynapseClientContext)

Create a SparkBatch.

new SparkBatch(client: SynapseClientContext)

Parameters

client
SynapseClientContext

Reference to the service client.

Method Details

create(string, string, ExtendedLivyBatchRequest, ServiceCallback<ExtendedLivyBatchResponse>)

function create(workspaceName: string, sparkPoolName: string, livyRequest: ExtendedLivyBatchRequest, callback: ServiceCallback<ExtendedLivyBatchResponse>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

livyRequest
ExtendedLivyBatchRequest

Livy compatible batch job request payload.

create(string, string, ExtendedLivyBatchRequest, SparkBatchCreateOptionalParams)

Create new spark batch job.

function create(workspaceName: string, sparkPoolName: string, livyRequest: ExtendedLivyBatchRequest, options?: SparkBatchCreateOptionalParams): Promise<SparkBatchCreateResponse>

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

livyRequest
ExtendedLivyBatchRequest

Livy compatible batch job request payload.

options
SparkBatchCreateOptionalParams

The optional parameters

Returns

Promise<Models.SparkBatchCreateResponse>

create(string, string, ExtendedLivyBatchRequest, SparkBatchCreateOptionalParams, ServiceCallback<ExtendedLivyBatchResponse>)

function create(workspaceName: string, sparkPoolName: string, livyRequest: ExtendedLivyBatchRequest, options: SparkBatchCreateOptionalParams, callback: ServiceCallback<ExtendedLivyBatchResponse>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

livyRequest
ExtendedLivyBatchRequest

Livy compatible batch job request payload.

options
SparkBatchCreateOptionalParams

The optional parameters

deleteMethod(string, string, number, RequestOptionsBase)

Cancels a running spark batch job.

function deleteMethod(workspaceName: string, sparkPoolName: string, batchId: number, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

batchId

number

Identifier for the batch job.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, number, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(workspaceName: string, sparkPoolName: string, batchId: number, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

batchId

number

Identifier for the batch job.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, number, ServiceCallback<void>)

function deleteMethod(workspaceName: string, sparkPoolName: string, batchId: number, callback: ServiceCallback<void>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

batchId

number

Identifier for the batch job.

callback

ServiceCallback<void>

The callback

get(string, string, number, ServiceCallback<ExtendedLivyBatchResponse>)

function get(workspaceName: string, sparkPoolName: string, batchId: number, callback: ServiceCallback<ExtendedLivyBatchResponse>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

batchId

number

Identifier for the batch job.

get(string, string, number, SparkBatchGetOptionalParams)

Gets a single spark batch job.

function get(workspaceName: string, sparkPoolName: string, batchId: number, options?: SparkBatchGetOptionalParams): Promise<SparkBatchGetResponse>

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

batchId

number

Identifier for the batch job.

options
SparkBatchGetOptionalParams

The optional parameters

Returns

Promise<Models.SparkBatchGetResponse>

get(string, string, number, SparkBatchGetOptionalParams, ServiceCallback<ExtendedLivyBatchResponse>)

function get(workspaceName: string, sparkPoolName: string, batchId: number, options: SparkBatchGetOptionalParams, callback: ServiceCallback<ExtendedLivyBatchResponse>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

batchId

number

Identifier for the batch job.

options
SparkBatchGetOptionalParams

The optional parameters

list(string, string, ServiceCallback<ExtendedLivyListBatchResponse>)

function list(workspaceName: string, sparkPoolName: string, callback: ServiceCallback<ExtendedLivyListBatchResponse>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

list(string, string, SparkBatchListOptionalParams)

List all spark batch jobs which are running under a particular spark pool.

function list(workspaceName: string, sparkPoolName: string, options?: SparkBatchListOptionalParams): Promise<SparkBatchListResponse>

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

options
SparkBatchListOptionalParams

The optional parameters

Returns

Promise<Models.SparkBatchListResponse>

list(string, string, SparkBatchListOptionalParams, ServiceCallback<ExtendedLivyListBatchResponse>)

function list(workspaceName: string, sparkPoolName: string, options: SparkBatchListOptionalParams, callback: ServiceCallback<ExtendedLivyListBatchResponse>)

Parameters

workspaceName

string

The name of the workspace to execute operations on.

sparkPoolName

string

Name of the spark pool. "ondemand" targets the ondemand pool.

options
SparkBatchListOptionalParams

The optional parameters