调用DescribeClusterBasicInfo接口,查询已创建集群的基本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeClusterBasicInfo |
系统规定参数。取值:DescribeClusterBasicInfo。 |
ClusterId | String | 是 | C-0EF9B0EC8564**** |
集群的ID。您可以通过ListClusters接口查看集群的ID。 |
RegionId | String | 是 | cn-huhehaote |
地域ID。您可以通过DescribeRegions接口查看最新的阿里云地域列表。 |
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeClusterBasicInfo
&ClusterId=C-0EF9B0EC8564****
&RegionId=cn-huhehaote
&<公共请求参数>
正常返回示例
XML
格式
<ClusterInfo>
<ImageId>m-hp37dmahkdx7h2b5****</ImageId>
<SecurityGroupId>sg-hp360xqw5l179aty****</SecurityGroupId>
<DepositType>HALF_MANAGED</DepositType>
<CoreNodeInService>0</CoreNodeInService>
<ZoneId>cn-huhehaote-a</ZoneId>
<AutoScalingSpotWithLimitAllowed>false</AutoScalingSpotWithLimitAllowed>
<IoOptimized>true</IoOptimized>
<TaskNodeInService>0</TaskNodeInService>
<MachineType>ECS</MachineType>
<AutoScalingAllowed>false</AutoScalingAllowed>
<ShowSoftwareInterface>false</ShowSoftwareInterface>
<ResizeDiskEnable>false</ResizeDiskEnable>
<SecurityGroupName>sg-hp360xqw5l179aty****</SecurityGroupName>
<BootstrapActionList>
</BootstrapActionList>
<CreateResource>ECM_EMR</CreateResource>
<RegionId>cn-huhehaote</RegionId>
<GatewayClusterInfoList>
</GatewayClusterInfoList>
<NetType>vpc</NetType>
<MasterNodeInService>0</MasterNodeInService>
<AutoScalingByLoadAllowed>true</AutoScalingByLoadAllowed>
<SoftwareInfo>
<Softwares>
<Software>
<Name>HDFS</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>2.8.5</Version>
<DisplayName>HDFS</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>YARN</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>2.8.5</Version>
<DisplayName>YARN</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>HIVE</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>3.1.1</Version>
<DisplayName>Hive</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>GANGLIA</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>3.7.2</Version>
<DisplayName>Ganglia</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>ZOOKEEPER</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>3.4.13</Version>
<DisplayName>Zookeeper</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>SPARK</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>2.4.3</Version>
<DisplayName>Spark</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>HBASE</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.4.9</Version>
<DisplayName>HBase</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>HUE</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>4.4.0</Version>
<DisplayName>HUE</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>ZEPPELIN</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.8.1</Version>
<DisplayName>Zeppelin</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>OOZIE</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>5.1.0</Version>
<DisplayName>Oozie</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>TEZ</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.9.1</Version>
<DisplayName>Tez</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>PHOENIX</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>4.14.1</Version>
<DisplayName>Phoenix</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>PRESTO</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.213</Version>
<DisplayName>Presto</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>SQOOP</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.4.7</Version>
<DisplayName>Sqoop</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>PIG</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.14.0</Version>
<DisplayName>Pig</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>STORM</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.2.2</Version>
<DisplayName>Storm</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>IMPALA</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>2.12.2</Version>
<DisplayName>Impala</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>FLINK</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.7.2</Version>
<DisplayName>Flink</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>RANGER</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.2.0</Version>
<DisplayName>Ranger</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>KNOX</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.1.0</Version>
<DisplayName>Knox</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>SUPERSET</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.28.1</Version>
<DisplayName>Superset</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>BIGBOOT</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.0.0</Version>
<DisplayName>Bigboot</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>LIVY</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.6.0</Version>
<DisplayName>LIVY</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>SMARTDATA</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.0.0</Version>
<DisplayName>SmartData</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>FLUME</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>1.8.0</Version>
<DisplayName>FLUME</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>ANALYTICS-ZOO</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>0.5.0</Version>
<DisplayName>analytics-zoo</DisplayName>
<StartTpe>1</StartTpe>
</Software>
<Software>
<Name>APACHEDS</Name>
<OnlyDisplay>false</OnlyDisplay>
<Version>2.0.0</Version>
<DisplayName>ApacheDS</DisplayName>
<StartTpe>1</StartTpe>
</Software>
</Softwares>
<EmrVer>EMR-3.21.1</EmrVer>
<ClusterType>HADOOP</ClusterType>
</SoftwareInfo>
<CreateType>MANUAL</CreateType>
<VSwitchId>vsw-hp333ghqgdxkk3djb****</VSwitchId>
<VpcId>vpc-hp3fawn3tu8ny436o****</VpcId>
<TaskNodeTotal>0</TaskNodeTotal>
<BootstrapFailed>false</BootstrapFailed>
<CoreNodeTotal>0</CoreNodeTotal>
<StartTime>1564132024000</StartTime>
<MasterNodeTotal>0</MasterNodeTotal>
<ChargeType>PostPaid</ChargeType>
<Configurations/>
<UserId>107992689699****</UserId>
<Name>EMR-API-test</Name>
<EasEnable>false</EasEnable>
<AutoScalingEnable>false</AutoScalingEnable>
<Status>IDLE</Status>
<LocalMetaDb>true</LocalMetaDb>
<HighAvailabilityEnable>false</HighAvailabilityEnable>
<ClusterId>C-02582A4A415E****</ClusterId>
<RunningTime>1004</RunningTime>
<UserDefinedEmrEcsRole>AliyunEmrEcsDefaultRole</UserDefinedEmrEcsRole>
</ClusterInfo>
<RequestId>BB81FF02-2FE0-4DB0-A04B-A0876D21EDD7</RequestId>
JSON
格式
{
"ClusterInfo": {
"ImageId": "m-hp37dmahkdx7h2b5****",
"SecurityGroupId": "sg-hp360xqw5l179aty****",
"DepositType": "HALF_MANAGED",
"CoreNodeInService": 0,
"ZoneId": "cn-huhehaote-a",
"AutoScalingSpotWithLimitAllowed": false,
"IoOptimized": true,
"TaskNodeInService": 0,
"MachineType": "ECS",
"AutoScalingAllowed": false,
"ShowSoftwareInterface": false,
"ResizeDiskEnable": false,
"SecurityGroupName": "sg-hp360xqw5l179aty****",
"BootstrapActionList": {
"BootstrapAction": []
},
"CreateResource": "ECM_EMR",
"RegionId": "cn-huhehaote",
"GatewayClusterInfoList": {
"GatewayClusterInfo": []
},
"NetType": "vpc",
"MasterNodeInService": 0,
"AutoScalingByLoadAllowed": true,
"SoftwareInfo": {
"Softwares": {
"Software": [
{
"Name": "HDFS",
"OnlyDisplay": false,
"Version": "2.8.5",
"DisplayName": "HDFS",
"StartTpe": 1
},
{
"Name": "YARN",
"OnlyDisplay": false,
"Version": "2.8.5",
"DisplayName": "YARN",
"StartTpe": 1
},
{
"Name": "HIVE",
"OnlyDisplay": false,
"Version": "3.1.1",
"DisplayName": "Hive",
"StartTpe": 1
},
{
"Name": "GANGLIA",
"OnlyDisplay": false,
"Version": "3.7.2",
"DisplayName": "Ganglia",
"StartTpe": 1
},
{
"Name": "ZOOKEEPER",
"OnlyDisplay": false,
"Version": "3.4.13",
"DisplayName": "Zookeeper",
"StartTpe": 1
},
{
"Name": "SPARK",
"OnlyDisplay": false,
"Version": "2.4.3",
"DisplayName": "Spark",
"StartTpe": 1
},
{
"Name": "HBASE",
"OnlyDisplay": false,
"Version": "1.4.9",
"DisplayName": "HBase",
"StartTpe": 1
},
{
"Name": "HUE",
"OnlyDisplay": false,
"Version": "4.4.0",
"DisplayName": "HUE",
"StartTpe": 1
},
{
"Name": "ZEPPELIN",
"OnlyDisplay": false,
"Version": "0.8.1",
"DisplayName": "Zeppelin",
"StartTpe": 1
},
{
"Name": "OOZIE",
"OnlyDisplay": false,
"Version": "5.1.0",
"DisplayName": "Oozie",
"StartTpe": 1
},
{
"Name": "TEZ",
"OnlyDisplay": false,
"Version": "0.9.1",
"DisplayName": "Tez",
"StartTpe": 1
},
{
"Name": "PHOENIX",
"OnlyDisplay": false,
"Version": "4.14.1",
"DisplayName": "Phoenix",
"StartTpe": 1
},
{
"Name": "PRESTO",
"OnlyDisplay": false,
"Version": "0.213",
"DisplayName": "Presto",
"StartTpe": 1
},
{
"Name": "SQOOP",
"OnlyDisplay": false,
"Version": "1.4.7",
"DisplayName": "Sqoop",
"StartTpe": 1
},
{
"Name": "PIG",
"OnlyDisplay": false,
"Version": "0.14.0",
"DisplayName": "Pig",
"StartTpe": 1
},
{
"Name": "STORM",
"OnlyDisplay": false,
"Version": "1.2.2",
"DisplayName": "Storm",
"StartTpe": 1
},
{
"Name": "IMPALA",
"OnlyDisplay": false,
"Version": "2.12.2",
"DisplayName": "Impala",
"StartTpe": 1
},
{
"Name": "FLINK",
"OnlyDisplay": false,
"Version": "1.7.2",
"DisplayName": "Flink",
"StartTpe": 1
},
{
"Name": "RANGER",
"OnlyDisplay": false,
"Version": "1.2.0",
"DisplayName": "Ranger",
"StartTpe": 1
},
{
"Name": "KNOX",
"OnlyDisplay": false,
"Version": "1.1.0",
"DisplayName": "Knox",
"StartTpe": 1
},
{
"Name": "SUPERSET",
"OnlyDisplay": false,
"Version": "0.28.1",
"DisplayName": "Superset",
"StartTpe": 1
},
{
"Name": "BIGBOOT",
"OnlyDisplay": false,
"Version": "1.0.0",
"DisplayName": "Bigboot",
"StartTpe": 1
},
{
"Name": "LIVY",
"OnlyDisplay": false,
"Version": "0.6.0",
"DisplayName": "LIVY",
"StartTpe": 1
},
{
"Name": "SMARTDATA",
"OnlyDisplay": false,
"Version": "1.0.0",
"DisplayName": "SmartData",
"StartTpe": 1
},
{
"Name": "FLUME",
"OnlyDisplay": false,
"Version": "1.8.0",
"DisplayName": "FLUME",
"StartTpe": 1
},
{
"Name": "ANALYTICS-ZOO",
"OnlyDisplay": false,
"Version": "0.5.0",
"DisplayName": "analytics-zoo",
"StartTpe": 1
},
{
"Name": "APACHEDS",
"OnlyDisplay": false,
"Version": "2.0.0",
"DisplayName": "ApacheDS",
"StartTpe": 1
}
]
},
"EmrVer": "EMR-3.21.1",
"ClusterType": "HADOOP"
},
"CreateType": "MANUAL",
"VSwitchId": "vsw-hp333ghqgdxkk3djb****",
"VpcId": "vpc-hp3fawn3tu8ny436o****",
"TaskNodeTotal": 0,
"BootstrapFailed": false,
"CoreNodeTotal": 0,
"StartTime": 1564132024000,
"MasterNodeTotal": 0,
"ChargeType": "PostPaid",
"Configurations": "",
"UserId": "107992689699****",
"Name": "EMR-API-test",
"EasEnable": false,
"AutoScalingEnable": false,
"Status": "IDLE",
"LocalMetaDb": true,
"HighAvailabilityEnable": false,
"ClusterId": "C-02582A4A415E****",
"RunningTime": 1004,
"UserDefinedEmrEcsRole": "AliyunEmrEcsDefaultRole"
},
"RequestId": "BB81FF02-2FE0-4DB0-A04B-A0876D21EDD7"
}