You need to enable JavaScript to run this app.
导航

ListApplicationConfigFiles - 集群配置文件列表

最近更新时间2024.01.22 15:54:59

首次发布时间2024.01.22 15:54:59

集群配置文件列表

使用说明

调用 ListApplicationConfigFiles,查看一个 E-MapReduce(EMR)集群中的应用配置文件。

注意事项

已拥有火山引擎账号并开通 EMR 权限。

请求说明

请求方式:POST
请求地址:https://open.volcengineapi.com/?Version=2023-08-15&Action=ListApplicationConfigFiles

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

ListApplicationConfigFiles

要执行的操作,取值:ListApplicationConfigFiles

Version
String

2023-08-15

API的版本,取值:2023-08-15

ClusterId
String

emr-xxx

集群id

ApplicationName
String

HDFS

应用名称

MaxResults
Integer

10

返回的最大记录数,默认10 ,最大100

NextToken
String

xxx

分页查询的下一页token

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
ApplicationName
String

HDFS

应用名称

FileName
String

core-site.xml

配置文件名称

FilePath
String

/etc/emr/hadoop/conf

配置文件路径

FileUser
String

hdfs

配置文件的权限:user

FileGroup
String

hadoop

配置文件的权限:group

SupportCustomConfigItem
Boolean

false

配置文件是否允许设置自定义参数

Description
String

xxx

配置文件的描述信息

请求示例

{
    "ClusterId":"emr-xxx",
    "ApplicationName": "HDFS"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20231204150314DDAD5A0C4767xxx",
        "Action": "ListApplicationConfigFiles",
        "Version": "2023-08-15",
        "Service": "emr",
        "Region": "cn-beijing",
        "Error": null,
        "Deprecated": false
    },
    "Result": {
        "Items": [
            {
                "ApplicationName": "HDFS",
                "FileName": "core-site.xml",
                "FilePath": "/etc/emr/hadoop/conf",
                "FileMode": null,
                "FileUser": "hdfs",
                "FileGroup": "hadoop",
                "SupportCustomConfigItem": null,
                "Description": null
            },
            {
                "ApplicationName": "HDFS",
                "FileName": "hadoop-env.sh",
                "FilePath": "/etc/emr/hadoop/conf",
                "FileMode": null,
                "FileUser": "hdfs",
                "FileGroup": "hadoop",
                "SupportCustomConfigItem": null,
                "Description": null
            }, ...
        ],
        "TotalCount": 9,
        "MaxResults": 10,
        "NextToken": null
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode
错误码
错误信息
说明
400
InvalidClusterId
cluster id {clusterId} not found

集群不存在

400
IllegalOperationForCluster
The cluster id {clusterId} does not support the operation

非法操作,该集群不支持该操作

400
InvalidRequest
Access Denied {clusterId}

对该集群没有权限

405
UnSupportedListConfigFiles
UnSupported List ConfigFiles when releaseVersion {0} is lower than 3.5.x