Dapatkan detail job.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:GetJobRun |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /api/v1/workspaces/{workspaceId}/jobRuns/{jobRunId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
Yes |
ID workspace. |
w-d2d82aa09151**** |
| jobRunId |
string |
Yes |
ID job run. |
jr-93d98d2f7061**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
No |
ID region. Misalnya, cn-hangzhou mewakili region Hangzhou. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| jobRun |
object |
Detail job. |
|
| workspaceId |
string |
ID workspace. |
w-d2d82aa09155**** |
| jobRunId |
string |
ID job run. |
jr-93d98d2f7061**** |
| name |
string |
Nama job. |
jobName |
| state |
string |
Status job. |
Running |
| stateChangeReason |
object |
Alasan perubahan status. |
|
| code |
string |
The error code. |
ERR-100000 |
| message |
string |
The error message. |
connection refused |
| submitTime |
integer |
Waktu saat job dikirim. |
1684119314000 |
| endTime |
integer |
Waktu saat job berakhir. |
1684122914000 |
| codeType |
string |
Tipe kode job. Nilai yang valid:
|
SQL |
| webUI |
string |
Web UI job. |
http://spark-ui |
| executionTimeoutSeconds |
integer |
Periode timeout untuk eksekusi job. |
3600 |
| resourceOwnerId |
string |
UID pengguna yang membuat job. |
150978934701**** |
| tags |
array |
Tag. |
|
| Tag |
Sebuah tag. |
||
| log | RunLog |
Path log run. |
|
| releaseVersion |
string |
Versi engine Spark. |
esr-3.3.1 |
| resourceQueueId |
string |
Nama queue tempat job berjalan. |
root_queue |
| jobDriver | JobDriver |
Informasi driver Spark. |
|
| configurationOverrides |
object |
Konfigurasi Spark job. |
|
| configurations |
array |
The configurations. |
|
| Configuration |
The configuration information. |
||
| displayReleaseVersion |
string |
Versi yang ditampilkan di console. |
esr-4.0.0 (Spark 3.5.2, Scala 2.12) |
| fusion |
boolean |
Menunjukkan apakah akan mengaktifkan engine Fusion untuk mempercepat eksekusi job. |
false |
| environmentId |
string |
ID environment. |
env-cpv569tlhtgndjl8**** |
| notebookAccessUrl |
string |
http://workflow-ide-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/spark-notebook-output/w-xxxxxxxxx/xxxxxxx |
|
| priority |
string |
5 |
|
| requestId |
string |
ID request. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
Contoh
Respons sukses
JSONformat
{
"jobRun": {
"workspaceId": "w-d2d82aa09155****",
"jobRunId": "jr-93d98d2f7061****",
"name": "jobName",
"state": "Running",
"stateChangeReason": {
"code": "ERR-100000",
"message": "connection refused"
},
"submitTime": 1684119314000,
"endTime": 1684122914000,
"codeType": "SQL",
"webUI": "http://spark-ui",
"executionTimeoutSeconds": 3600,
"resourceOwnerId": "150978934701****",
"tags": [
{
"key": "workflowId",
"value": "wf-123test"
}
],
"log": {
"driverStdOut": "oss://bucket/path/to/stdout",
"driverStdError": "oss://bucket/path/to/stderr",
"driverSyslog": "oss://bucket/path/to/syslog",
"driverStartup": "oss://bucket/path/to/startup"
},
"releaseVersion": "esr-3.3.1",
"resourceQueueId": "root_queue",
"jobDriver": {
"sparkSubmit": {
"entryPoint": "oss://bucket/path/to/entrypoint.jar",
"entryPointArguments": [
"arg1"
],
"sparkSubmitParameters": "--conf spark.app.name=test"
}
},
"configurationOverrides": {
"configurations": [
{
"configFileName": "common.conf",
"configItemKey": "hive.metastore.type",
"configItemValue": "USER_RDS"
}
]
},
"displayReleaseVersion": "esr-4.0.0 (Spark 3.5.2, Scala 2.12)",
"fusion": false,
"environmentId": "env-cpv569tlhtgndjl8****",
"notebookAccessUrl": "http://workflow-ide-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/spark-notebook-output/w-xxxxxxxxx/xxxxxxx"
},
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.