Spark Session - Get Spark Statements
Hämtar en lista över instruktioner i en Spark-session.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Slutpunkten för arbetsytans utveckling, till exempel |
livy
|
path | True |
string |
Giltig API-version för begäran. |
session
|
path | True |
integer int32 |
Identifierare för sessionen. |
spark
|
path | True |
string |
Namnet på spark-poolen. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Klart |
Exempel
Gets a list of statements within a spark session.
Exempelbegäran
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123/statements
Exempelsvar
{
"total_statements": 2,
"statements": []
}
Definitioner
Name | Description |
---|---|
Livy |
|
Spark |
|
Spark |
|
Spark |
LivyStatementStates
Name | Typ | Description |
---|---|---|
available |
string |
|
cancelled |
string |
|
cancelling |
string |
|
error |
string |
|
running |
string |
|
waiting |
string |
SparkStatement
Name | Typ | Description |
---|---|---|
code |
string |
|
id |
integer |
|
output | ||
state |
SparkStatementCollection
Name | Typ | Description |
---|---|---|
statements | ||
total_statements |
integer |
SparkStatementOutput
Name | Typ | Description |
---|---|---|
data |
object |
|
ename |
string |
|
evalue |
string |
|
execution_count |
integer |
|
status |
string |
|
traceback |
string[] |