Spark Session - Get Spark Statements
Spark oturumundaki deyimlerin listesini alır.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Çalışma alanı geliştirme uç noktası, örneğin |
livy
|
path | True |
string |
İstek için geçerli api sürümü. |
session
|
path | True |
integer int32 |
Oturumun tanımlayıcısı. |
spark
|
path | True |
string |
Spark havuzunun adı. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Başarılı |
Örnekler
Gets a list of statements within a spark session.
Sample Request
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123/statements
Sample Response
{
"total_statements": 2,
"statements": []
}
Tanımlar
Name | Description |
---|---|
Livy |
|
Spark |
|
Spark |
|
Spark |
LivyStatementStates
Name | Tür | Description |
---|---|---|
available |
string |
|
cancelled |
string |
|
cancelling |
string |
|
error |
string |
|
running |
string |
|
waiting |
string |
SparkStatement
Name | Tür | Description |
---|---|---|
code |
string |
|
id |
integer |
|
output | ||
state |
SparkStatementCollection
Name | Tür | Description |
---|---|---|
statements | ||
total_statements |
integer |
SparkStatementOutput
Name | Tür | Description |
---|---|---|
data |
object |
|
ename |
string |
|
evalue |
string |
|
execution_count |
integer |
|
status |
string |
|
traceback |
string[] |