Share via


Spark Batch - Get Spark Batch Jobs

Répertorie tous les travaux spark batch qui s’exécutent sous un pool Spark particulier.

GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches?from={from}&size={size}&detailed={detailed}

Paramètres URI

Nom Dans Obligatoire Type Description
endpoint
path True

string

Le point de terminaison du développement de l’espace de travail, par exemple https://myworkspace.dev.azuresynapse.net.

livyApiVersion
path True

string

Version valide de l’API pour la requête.

sparkPoolName
path True

string

Nom du pool Spark.

detailed
query

boolean

Paramètre de requête facultatif spécifiant si la réponse détaillée est retournée au-delà de la simple livy.

from
query

integer

int32

Paramètre facultatif spécifiant l’index à partir duquel la liste doit commencer.

size
query

integer

int32

Paramètre facultatif spécifiant la taille de la liste retournée.

        By default it is 20 and that is the maximum.

Réponses

Nom Type Description
200 OK

SparkBatchJobCollection

Succès

Exemples

List all spark batch jobs

Sample Request

GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/batches?from=0&size=2&detailed=True

Sample Response

{
  "from": 0,
  "total": 2,
  "sessions": []
}

Définitions

Nom Description
LivyStates

État du traitement par lots

PluginCurrentState
SchedulerCurrentState
SparkBatchJob
SparkBatchJobCollection

Réponse pour l’opération de liste de lots.

SparkBatchJobResultType

Résultat du travail par lots Spark.

SparkBatchJobState
SparkErrorSource
SparkJobType

Type de travail.

SparkRequest
SparkScheduler
SparkServiceError
SparkServicePlugin

LivyStates

État du traitement par lots

Nom Type Description
busy

string

dead

string

error

string

idle

string

killed

string

not_started

string

recovering

string

running

string

shutting_down

string

starting

string

success

string

PluginCurrentState

Nom Type Description
Cleanup

string

Ended

string

Monitoring

string

Preparation

string

Queued

string

ResourceAcquisition

string

Submission

string

SchedulerCurrentState

Nom Type Description
Ended

string

Queued

string

Scheduled

string

SparkBatchJob

Nom Type Description
appId

string

ID d’application de cette session

appInfo

object

Informations détaillées sur l’application.

artifactId

string

Identificateur d’artefact.

errorInfo

SparkServiceError[]

Informations sur l'erreur.

id

integer

ID de session.

jobType

SparkJobType

Type de travail.

livyInfo

SparkBatchJobState

log

string[]

Lignes de journal.

name

string

Nom du lot.

pluginInfo

SparkServicePlugin

Informations du plug-in.

result

SparkBatchJobResultType

Résultat du travail par lots Spark.

schedulerInfo

SparkScheduler

Informations du planificateur.

sparkPoolName

string

Nom du pool Spark.

state

LivyStates

État du traitement par lots

submitterId

string

Identificateur de l’émetteur.

submitterName

string

Nom de l’émetteur.

tags

object

Balises.

workspaceName

string

Nom de l’espace de travail.

SparkBatchJobCollection

Réponse pour l’opération de liste de lots.

Nom Type Description
from

integer

Index de début des sessions extraites.

sessions

SparkBatchJob[]

Liste de lots

total

integer

Nombre de sessions extraites.

SparkBatchJobResultType

Résultat du travail par lots Spark.

Nom Type Description
Cancelled

string

Failed

string

Succeeded

string

Uncertain

string

SparkBatchJobState

Nom Type Description
currentState

string

état du travail Spark.

deadAt

string

heure à laquelle l’état livy « mort » a été vu pour la première fois.

jobCreationRequest

SparkRequest

killedAt

string

l’heure à laquelle l’état livy « tué » a été vu pour la première fois.

notStartedAt

string

l’heure à laquelle « not_started » état livy a été vu pour la première fois.

recoveringAt

string

l’heure à laquelle l’état livy de « récupération » a été vu pour la première fois.

runningAt

string

heure à laquelle l’état livy « en cours d’exécution » a été vu pour la première fois.

startingAt

string

heure à laquelle l’état livy « de départ » a été vu pour la première fois.

successAt

string

l’heure à laquelle « succès » livy état a été vu pour la première fois.

SparkErrorSource

Nom Type Description
Dependency

string

System

string

Unknown

string

User

string

SparkJobType

Type de travail.

Nom Type Description
SparkBatch

string

SparkSession

string

SparkRequest

Nom Type Description
archives

string[]

args

string[]

className

string

conf

object

driverCores

integer

driverMemory

string

executorCores

integer

executorMemory

string

file

string

files

string[]

jars

string[]

name

string

numExecutors

integer

pyFiles

string[]

SparkScheduler

Nom Type Description
cancellationRequestedAt

string

currentState

SchedulerCurrentState

endedAt

string

scheduledAt

string

submittedAt

string

SparkServiceError

Nom Type Description
errorCode

string

message

string

source

SparkErrorSource

SparkServicePlugin

Nom Type Description
cleanupStartedAt

string

currentState

PluginCurrentState

monitoringStartedAt

string

preparationStartedAt

string

resourceAcquisitionStartedAt

string

submissionStartedAt

string