Retrieve application installation package information
Call GetApplicationPacket to obtain the installation package information for an E-MapReduce (EMR) cluster application.
You must have a Volcano Engine account and have enabled EMR permissions.
Request method: POST
Request URL: https://emr.cn-beijing.volcengineapi.com/?Version=2023-08-15&Action=GetApplicationPacket
The table below lists only the unique request parameters for this interface and some common parameters. For more information, see common parameters.
Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
Action | String | Yes | GetApplicationPacket | Operation to be performed. Value: GetApplicationPacket |
Version | String | Yes | 2023-08-15 | API version. Value: 2023-08-15 |
ClusterId | String | Yes | emr-xxx | Cluster ID |
ApplicationName | String | Yes | HDFS | Application name |
The table below lists only the unique response parameters for this interface. For more information, see response structure
Parameter | Type | Example value | Description |
|---|---|---|---|
Uri | String | https://xxx | TOS URL of the application installation package |
Digest | String | 796120610 | Size verification of the application installation package |
Destination | String | /usr/lib/emr/current/hadoop/hadoop-3.3.4.5.tar.gz | Target address for application installation |
StripComponents | Integer | 1 | Metadata of the application installation package |
{ "ClusterId":"emr-xxx", "ApplicationName": "HDFS" }
{ "ResponseMetadata": { "RequestId": "202312051652149128E59F3800xxx", "Action": "GetApplicationPacket", "Version": "2023-08-15", "Service": "emr", "Region": "cn-beijing", "Error": null, "Deprecated": false }, "Result": [ { "Uri": "https://xxx", "Digest": "796120610", "Destination": "/usr/lib/emr/current/hadoop/hadoop-3.3.4.5.tar.gz", "StripComponents": 1 } ] }
The table below lists the error codes related to the business logic of this interface. For common error codes, see the common error codes documentation.
HttpCode | Error code | Error message | Note |
|---|---|---|---|
400 | InvalidClusterId | cluster id {clusterId} not found | Cluster does not exist |
400 | IllegalOperationForCluster | The cluster id {clusterId} does not support the operation | Illegal operation. This cluster does not support this operation. |
400 | InvalidRequest | Access Denied {clusterId} | No permission for this cluster |