创建集群 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 状态码,成功:200,失败:500 200 error String 错误码,请求成功时,不返回该字段 EMR400000 message String 用来简述当前接口调用状态以及必要提示信息 请求成功 returnObj Object 返回结果 表 returnObj 表 returnObj 参数 参数类型 说明 示例 下级对象 orderNo String 订单号 20221018153152727265 枚举参数 无 请求示例 请求url 请求头header 无 请求体body 数据湖请求示例: { "clustername": "sjfwtest1", "clustertype": "datalake", "components": "OpenLDAP,Kerberos,ZooKeeper,HDFS,YARN,Hive,Tez,Spark,Hudi,Iceberg,HBase,Trino,Kyuubi,Doris,Ranger,Kafka,Knox,Flink,JeekeFS,Flume", "regionid": "bb9fdb42056f11eda1610242ac110002", "availablezoneid": "cnhuadong1jsnj3Apublicctcloud", "vpcId": "vpcn83zi9vuo0", "subnetid": "subnet8hzbyype9r", "securitygroupsid": "sgzfh4pgydhe", "enableipv6": false, "noderootpassword": "Juhwqe7h!21Da.", "ostype": "CTyun", "hosttype": "ecs", "cputype": "X86", "spectype": 1, "dpstype": null, "chargeinfo": { "chargemode": "prePaid", "periodtype": "month", "periodnum": 1, "isautorenew": false }, "datasourceconfigs": [{ "type": "Hive", "properties": [{ "name": "DBHost", "value": "192.168.1.100" }, { "name": "DBPort", "value": "3306" }, { "name": "DBName", "value": "hive1" }, { "name": "DBUser", "value": "hive" }, { "name": "DBPassword", "value": "A121daDAqw2A." } ] }, { "type": "Ranger", "properties": [{ "name": "DBHost", "value": "192.168.1.100" }, { "name": "DBPort", "value": "3306" }, { "name": "DBName", "value": "ranger1" }, { "name": "DBUser", "value": "ranger" }, { "name": "DBPassword", "value": "A121daDAqw2A." } ] } ], "nodedetails": [{ "groupname": "master", "nodenum": 3, "nodesize": "physical.s5.2xlarge1", "affinitygroup": true, "diskspecifications": [{ "diskfunction": "SYSTEM", "disktype": "cloud", "iotype": "SATA", "disksize": 100, "disknum": 1 }, { "diskfunction": "DATA", "disktype": "cloud", "iotype": "SATA", "disksize": 80, "disknum": 2 } ] }, { "groupname": "core1", "nodenum": 3, "nodesize": "physical.s5.2xlarge1", "affinitygroup": true, "diskspecifications": [{ "diskfunction": "SYSTEM", "disktype": "cloud", "iotype": "SATA", "disksize": 100, "disknum": 1 }, { "diskfunction": "DATA", "disktype": "cloud", "iotype": "SATA", "disksize": 80, "disknum": 2 } ] }, { "groupname": "task1", "nodenum": 1, "nodesize": "physical.s5.2xlarge4", "affinitygroup": true, "diskspecifications": [{ "diskfunction": "SYSTEM", "disktype": "local", "raiduuid": "rwtzluqacgzzxgunnabdkpnpjew3d" }, { "diskfunction": "DATA", "disktype": "local", "raiduuid": "rqytwf9r5h0yn9x4evjkyr0n1cwyb" } ] } ] }