Retrieves the configuration of a Spark job.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/workspaces/{workspaceId}/runs/{runId}/action/getRunConfiguration HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
Yes |
The workspace ID. |
w-d2d82aa09151**** |
| runId |
string |
Yes |
The job instance ID. |
jr-93d98d2f7061**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| runConfiguration |
object |
The run configuration. |
|
| runtimeConfigs |
array |
The list of runtime parameters. |
|
| Tag |
The runtime parameter. |
||
| applicationConfigs |
array<object> |
The list of Spark configuration parameters. |
|
|
object |
The Spark configuration parameter. |
||
| configFileName |
string |
The name of the application configuration file. |
spark-defaults.conf |
| configItemKey |
string |
The key of the configuration item. |
spark.driver.cores |
| configItemValue |
string |
The value of the configuration item. |
2 |
| logConfig |
object |
The log configuration. |
|
| LogLevel |
string |
The log level. |
INFO |
| LogPath |
string |
The log path. |
oss://test |
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
Examples
Success response
JSON format
{
"runConfiguration": {
"runtimeConfigs": [
{
"key": "workflowId",
"value": "wf-123test"
}
],
"applicationConfigs": [
{
"configFileName": "spark-defaults.conf",
"configItemKey": "spark.driver.cores",
"configItemValue": "2"
}
],
"logConfig": {
"LogLevel": "INFO",
"LogPath": "oss://test"
}
},
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.