Spark Batch - Get Spark Batch Job
Obtient un seul travail spark batch.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches/{batchId}
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches/{batchId}?detailed={detailed}
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
batch
|
path | True |
integer int32 |
Identificateur de la tâche de traitement par lots. |
endpoint
|
path | True |
string |
Le point de terminaison du développement de l’espace de travail, par exemple |
livy
|
path | True |
string |
Version valide de l’API pour la requête. |
spark
|
path | True |
string |
Nom du pool Spark. |
detailed
|
query |
boolean |
Param de requête facultatif spécifiant si la réponse détaillée est retournée au-delà du livy simple. |
Nom | Type | Description |
---|---|---|
200 OK |
Succès |
Exemple de requête
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/batches/123?detailed=True
Exemple de réponse
{
"livyInfo": null,
"name": "jobname",
"workspaceName": "myWorkspace",
"sparkPoolName": "mySparkPool",
"submitterName": "thetime",
"submitterId": "thesubmitterid",
"artifactId": "fill in here",
"jobType": "SparkBatch",
"result": "Failed",
"schedulerInfo": null,
"pluginInfo": null,
"errorInfo": [],
"tags": null,
"id": 1,
"appId": "fill in here",
"appInfo": null,
"state": "the state",
"log": []
}
Nom | Description |
---|---|
Livy |
État du traitement par lots |
Plugin |
|
Scheduler |
|
Spark |
|
Spark |
Résultat du travail par lots Spark. |
Spark |
|
Spark |
|
Spark |
Type de travail. |
Spark |
|
Spark |
|
Spark |
|
Spark |
É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 |
Nom | Type | Description |
---|---|---|
Cleanup |
string |
|
Ended |
string |
|
Monitoring |
string |
|
Preparation |
string |
|
Queued |
string |
|
ResourceAcquisition |
string |
|
Submission |
string |
Nom | Type | Description |
---|---|---|
Ended |
string |
|
Queued |
string |
|
Scheduled |
string |
Nom | Type | Description |
---|---|---|
appId |
string |
ID d’application de cette session |
appInfo |
object |
Informations détaillées sur l’application. |
artifactId |
string |
Identificateur de l’artefact. |
errorInfo |
Informations sur l'erreur. |
|
id |
integer |
ID de session. |
jobType |
Type de travail. |
|
livyInfo | ||
log |
string[] |
Lignes de journal. |
name |
string |
Nom du lot. |
pluginInfo |
Informations sur le plug-in. |
|
result |
Résultat du travail par lots Spark. |
|
schedulerInfo |
Informations du planificateur. |
|
sparkPoolName |
string |
Nom du pool Spark. |
state |
É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. |
Résultat du travail par lots Spark.
Nom | Type | Description |
---|---|---|
Cancelled |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Uncertain |
string |
Nom | Type | Description |
---|---|---|
currentState |
string |
état du travail Spark. |
deadAt |
string |
l’heure à laquelle l’état livy « mort » a été vu pour la première fois. |
jobCreationRequest | ||
killedAt |
string |
l’époque à laquelle « tué » l’état livy a été vu pour la première fois. |
notStartedAt |
string |
l’époque à laquelle « not_started » état livy a été vu pour la première fois. |
recoveringAt |
string |
l’époque à laquelle l’état livy de « récupération » a été vu pour la première fois. |
runningAt |
string |
l’heure à laquelle l’état livy « en cours d’exécution » a été vu pour la première fois. |
startingAt |
string |
l’heure à laquelle l’état livy « de départ » a été vu pour la première fois. |
successAt |
string |
l’époque à laquelle l’état livy « succès » a été vu pour la première fois. |
Nom | Type | Description |
---|---|---|
Dependency |
string |
|
System |
string |
|
Unknown |
string |
|
User |
string |
Type de travail.
Nom | Type | Description |
---|---|---|
SparkBatch |
string |
|
SparkSession |
string |
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[] |
Nom | Type | Description |
---|---|---|
cancellationRequestedAt |
string |
|
currentState | ||
endedAt |
string |
|
scheduledAt |
string |
|
submittedAt |
string |
Nom | Type | Description |
---|---|---|
errorCode |
string |
|
message |
string |
|
source |
Nom | Type | Description |
---|---|---|
cleanupStartedAt |
string |
|
currentState | ||
monitoringStartedAt |
string |
|
preparationStartedAt |
string |
|
resourceAcquisitionStartedAt |
string |
|
submissionStartedAt |
string |