Lists Kyuubi Spark applications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:ListKyuubiSparkApplications |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/kyuubi/{workspaceId}/{kyuubiServiceId}/applications HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
No |
The workspace ID. |
w-d2d82aa09155**** |
| kyuubiServiceId |
string |
No |
The Kyuubi service ID. |
kb-c7141f10c3f549fc9f8b8ae562b8**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| nextToken |
string |
No |
The token to retrieve the next page of results. |
1 |
| maxResults |
integer |
No |
The maximum number of records to return. |
20 |
| applicationId |
string |
No |
The ID of the Spark application submitted by Kyuubi, used for searching. |
spark-339f844005b6404c95f9f7c7a13b**** |
| applicationName |
string |
No |
The name of the Spark application submitted by Kyuubi, used for searching. |
kyuubi-connection-spark-sql-anonymous-fa9a5e73-b4b1-474a-b**** |
| startTime |
object |
No |
The time range when the task started. |
|
| startTime |
integer |
No |
The start of the time range. |
1709740800000 |
| endTime |
integer |
No |
The end of the time range. |
1710432000000 |
| resourceQueueId |
string |
No |
root_queue |
|
| minDuration |
integer |
No |
60000 |
|
| orderBy |
array |
No |
||
|
string |
No |
startTime |
||
| sort |
string |
No |
asc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The format of the response. |
||
| applications |
array<object> |
A list of application details. |
|
|
object |
The application details. |
||
| applicationId |
string |
The ID of the Spark application submitted by Kyuubi. |
spark-339f844005b6404c95f9f7c7a13b**** |
| applicationName |
string |
The name of the Spark application submitted by Kyuubi. |
kyuubi-connection-spark-sql-anonymous-fa9a5e73-b4b1-474a-b**** |
| webUI |
string |
The URL of the Spark application UI. |
https://emr-spark-ui-cn-hangzhou.data.aliyun.com/history/w-cf351f3b6dcb****-spark-339f844005b6404c95f9f7c7a13b****/jobs/?spm=emr-serverless-spark.gateway_sessions.0.0.711344e3QfMVTz&token=NS9CU1lpWGl1Q2RRdi9sZUtuS3hy**** |
| state |
string |
The status of the Spark application.
|
STARTING |
| startTime |
string |
The time when the task started. |
2025-02-12 19:59:16 |
| endTime |
string |
The time when the task ended. |
2025-02-12 20:02:02 |
| cuHours |
number |
The number of CUs consumed during the task lifecycle. This is an estimated value. The final amount is subject to your bill. |
0.238302 |
| mbSeconds |
integer |
The total memory allocated to the task in MB, multiplied by the number of seconds the task ran. |
3513900 |
| vcoreSeconds |
integer |
The total vCores allocated to the task, multiplied by the number of seconds the task ran. |
780 |
| resourceQueueId |
string |
The name of the resource queue where the Spark task runs. |
dev_queue |
| exitReason |
string |
Exit Code: 137, Exit Reason: OOMKilled |
|
| latestSqlStatementStatus |
string |
SUCCESS |
|
| runLog | RunLog | ||
| kyuubiServiceId |
string |
kb-2b93ec*******c9440c |
|
| tags |
array |
||
| Tag | |||
| priority |
string |
5 |
|
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
| nextToken |
string |
The token to retrieve the next page of results. |
1 |
| maxResults |
integer |
The maximum number of records returned. |
20 |
| totalCount |
integer |
The total number of records. |
200 |
Examples
Success response
JSON format
{
"applications": [
{
"applicationId": "spark-339f844005b6404c95f9f7c7a13b****",
"applicationName": "kyuubi-connection-spark-sql-anonymous-fa9a5e73-b4b1-474a-b****",
"webUI": "https://emr-spark-ui-cn-hangzhou.data.aliyun.com/history/w-cf351f3b6dcb****-spark-339f844005b6404c95f9f7c7a13b****/jobs/?spm=emr-serverless-spark.gateway_sessions.0.0.711344e3QfMVTz&token=NS9CU1lpWGl1Q2RRdi9sZUtuS3hy****",
"state": "STARTING",
"startTime": "2025-02-12 19:59:16",
"endTime": "2025-02-12 20:02:02",
"cuHours": 0.238302,
"mbSeconds": 3513900,
"vcoreSeconds": 780,
"resourceQueueId": "dev_queue",
"exitReason": "Exit Code: 137, Exit Reason: OOMKilled",
"latestSqlStatementStatus": "SUCCESS",
"runLog": {
"driverStdOut": "oss://bucket/path/to/stdout",
"driverStdError": "oss://bucket/path/to/stderr",
"driverSyslog": "oss://bucket/path/to/syslog",
"driverStartup": "oss://bucket/path/to/startup"
},
"kyuubiServiceId": "kb-2b93ec*******c9440c",
"tags": [
{
"key": "workflowId",
"value": "wf-123test"
}
],
"priority": "5"
}
],
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"nextToken": "1",
"maxResults": 20,
"totalCount": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.