Spark Session - Get Spark Session
Obtiene una única sesión de Spark.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}?detailed={detailed}
Parámetros de identificador URI
Nombre | En | Requerido | Tipo | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Punto de conexión de desarrollo del área de trabajo, por ejemplo |
livy
|
path | True |
string |
Versión de API válida para la solicitud. |
session
|
path | True |
integer int32 |
Identificador de la sesión. |
spark
|
path | True |
string |
Nombre del grupo de Spark. |
detailed
|
query |
boolean |
Parámetro de consulta opcional que especifica si se devuelve una respuesta detallada más allá de livy sin formato. |
Respuestas
Nombre | Tipo | Description |
---|---|---|
200 OK |
Correcto |
Ejemplos
Gets a single spark session.
Solicitud de ejemplo
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123?detailed=True
Respuesta de muestra
{
"livyInfo": null,
"name": "jobname",
"workspaceName": "myWorkspace",
"sparkPoolName": "mySparkPool",
"submitterName": "thetime",
"submitterId": "thesubmitterid",
"artifactId": "fill in here",
"jobType": "SparkSession",
"result": "Failed",
"schedulerInfo": null,
"pluginInfo": null,
"errorInfo": [],
"tags": null,
"id": 1,
"appId": "fill in here",
"appInfo": null,
"state": "the state",
"log": []
}
Definiciones
Nombre | Description |
---|---|
Livy |
Estado del lote |
Plugin |
|
Scheduler |
|
Spark |
|
Spark |
El tipo de trabajo. |
Spark |
|
Spark |
|
Spark |
|
Spark |
|
Spark |
|
Spark |
|
Spark |
LivyStates
Estado del lote
Nombre | Tipo | 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
Nombre | Tipo | Description |
---|---|---|
Cleanup |
string |
|
Ended |
string |
|
Monitoring |
string |
|
Preparation |
string |
|
Queued |
string |
|
ResourceAcquisition |
string |
|
Submission |
string |
SchedulerCurrentState
Nombre | Tipo | Description |
---|---|---|
Ended |
string |
|
Queued |
string |
|
Scheduled |
string |
SparkErrorSource
Nombre | Tipo | Description |
---|---|---|
Dependency |
string |
|
System |
string |
|
Unknown |
string |
|
User |
string |
SparkJobType
El tipo de trabajo.
Nombre | Tipo | Description |
---|---|---|
SparkBatch |
string |
|
SparkSession |
string |
SparkRequest
Nombre | Tipo | 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
Nombre | Tipo | Description |
---|---|---|
cancellationRequestedAt |
string |
|
currentState | ||
endedAt |
string |
|
scheduledAt |
string |
|
submittedAt |
string |
SparkServiceError
Nombre | Tipo | Description |
---|---|---|
errorCode |
string |
|
message |
string |
|
source |
SparkServicePlugin
Nombre | Tipo | Description |
---|---|---|
cleanupStartedAt |
string |
|
currentState | ||
monitoringStartedAt |
string |
|
preparationStartedAt |
string |
|
resourceAcquisitionStartedAt |
string |
|
submissionStartedAt |
string |
SparkSession
Nombre | Tipo | Description |
---|---|---|
appId |
string |
|
appInfo |
object |
|
artifactId |
string |
|
errorInfo | ||
id |
integer |
|
jobType | ||
livyInfo | ||
log |
string[] |
|
name |
string |
|
pluginInfo | ||
result | ||
schedulerInfo | ||
sparkPoolName |
string |
|
state |
Estado de sesión. |
|
submitterId |
string |
|
submitterName |
string |
|
tags |
object |
|
workspaceName |
string |
SparkSessionResultType
Nombre | Tipo | Description |
---|---|---|
Cancelled |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Uncertain |
string |
SparkSessionState
Nombre | Tipo | Description |
---|---|---|
busyAt |
string |
|
currentState |
string |
|
deadAt |
string |
|
errorAt |
string |
|
idleAt |
string |
|
jobCreationRequest | ||
killedAt |
string |
|
notStartedAt |
string |
|
recoveringAt |
string |
|
shuttingDownAt |
string |
|
startingAt |
string |