Spark Session - Get Spark Statement
Obtient une instruction unique dans une session Spark.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
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. |
session
|
path | True |
integer int32 |
Identificateur de la session. |
spark
|
path | True |
string |
Nom du pool Spark. |
statement
|
path | True |
integer int32 |
Identificateur de l’instruction. |
Nom | Type | Description |
---|---|---|
200 OK |
Succès |
Exemple de requête
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123/statements/123
Exemple de réponse
{
"id": 123,
"code": "fill in here",
"state": "fill in here",
"output": null
}
Nom | Description |
---|---|
Livy |
|
Spark |
|
Spark |
Nom | Type | Description |
---|---|---|
available |
string |
|
cancelled |
string |
|
cancelling |
string |
|
error |
string |
|
running |
string |
|
waiting |
string |
Nom | Type | Description |
---|---|---|
code |
string |
|
id |
integer |
|
output | ||
state |
Nom | Type | Description |
---|---|---|
data |
object |
|
ename |
string |
|
evalue |
string |
|
execution_count |
integer |
|
status |
string |
|
traceback |
string[] |