Megosztás a következőn keresztül:


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 https://myworkspace.dev.azuresynapse.net.

livyApiVersion
path True

string

A kérelem érvényes API-verziója.

sessionId
path True

integer (int32)

A munkamenet azonosítója.

sparkPoolName
path True

string

A spark-készlet neve.

statementId
path True

integer (int32)

Az utasítás azonosítója.

Válaszok

Name Típus Description
200 OK

SparkStatement

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
LivyStatementStates
SparkStatement
SparkStatementOutput

LivyStatementStates

Érték Description
available
cancelled
cancelling
error
running
waiting

SparkStatement

Name Típus Description
code

string

id

integer (int32)

output

SparkStatementOutput

state

LivyStatementStates

SparkStatementOutput

Name Típus Description
data

object

ename

string

evalue

string

execution_count

integer (int32)

status

string

traceback

string[]