Spark Session - Get Spark Statement
Spark oturumu içinde tek bir deyim alır.
GET {endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}
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ı. |
statement
|
path | True |
integer int32 |
Deyiminin tanımlayıcısı. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Başarılı |
Örnekler
Gets a single statement within a spark session.
Sample Request
GET myWorkspace.dev.azuresynapse.net/livyApi/versions/2020-12-01/sparkPools/mySparkPool/sessions/123/statements/123
Sample Response
{
"id": 123,
"code": "fill in here",
"state": "fill in here",
"output": null
}
Tanımlar
Name | Description |
---|---|
Livy |
|
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 |
SparkStatementOutput
Name | Tür | Description |
---|---|---|
data |
object |
|
ename |
string |
|
evalue |
string |
|
execution_count |
integer |
|
status |
string |
|
traceback |
string[] |