Spark Session - Get Spark Statement
Egyetlen utasítást kap egy spark-munkameneten belül.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
A munkaterület fejlesztési végpontja, például |
livy
|
path | True |
string |
A kérelem érvényes API-verziója. |
session
|
path | True |
integer (int32) |
A munkamenet azonosítója. |
spark
|
path | True |
string |
A spark-készlet neve. |
statement
|
path | True |
integer (int32) |
Az utasítás azonosítója. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
Siker |
Példák
Gets a single statement within a spark session.
Mintakérelem
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123/statements/123
Mintaválasz
{
"id": 123,
"code": "fill in here",
"state": "fill in here",
"output": null
}
Definíciók
Name | Description |
---|---|
Livy |
|
Spark |
|
Spark |
LivyStatementStates
Érték | Description |
---|---|
available | |
cancelled | |
cancelling | |
error | |
running | |
waiting |
SparkStatement
Name | Típus | Description |
---|---|---|
code |
string |
|
id |
integer (int32) |
|
output | ||
state |
SparkStatementOutput
Name | Típus | Description |
---|---|---|
data |
object |
|
ename |
string |
|
evalue |
string |
|
execution_count |
integer (int32) |
|
status |
string |
|
traceback |
string[] |