changeCloudHadoopNodeCount

Prev Next

Available in VPC

Change the number of worker nodes in a Cloud Hadoop cluster.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET | POST /vhadoop/v2/changeCloudHadoopNodeCount
Note

This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.

Request headers

For information about the headers common to all Cloud Hadoop APIs, see Cloud Hadoop request headers.

Request query parameters

You can use the following query parameters with your request:

Field Type Required Description
regionCode String Optional Region code
cloudHadoopInstanceNo String Required Cluster instance number
workerNodeCount Integer Required Number of worker nodes
  • Up to 10 can be added at a time.
  • Call multiple times to add 11 or more.
  • There is no limit to the number of deletions.
responseFormatType String Optional Format of the response data
  • xml (default) | json

Request example

The request example is as follows:

curl --location --request GET 'https://ncloud.apigw.ntruss.com/vhadoop/v2/changeCloudHadoopNodeCount?regionCode=KR&cloudHadoopInstanceNo=2707****&workerNodeCount=3&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
changeCloudHadoopNodeCountResponse Object - Response result
changeCloudHadoopNodeCountResponse.requestId String - ID for the request
  • UUID format
changeCloudHadoopNodeCountResponse.returnCode String - Response code
changeCloudHadoopNodeCountResponse.returnMessage String - Response message

Response status codes

For information about the HTTP status codes common to all Cloud Hadoop APIs, see Cloud Hadoop response status codes.

Response example

The response example is as follows:

{
    "changeCloudHadoopNodeCountResponse": {
        "totalRows": 1,
        "cloudHadoopInstanceList": [
            {
                "cloudHadoopInstanceNo": "2707****",
                "cloudHadoopClusterName": "clus1",
                "cloudHadoopInstanceStatusName": "settingUp",
                "cloudHadoopInstanceStatus": {
                    "code": "CREAT",
                    "codeName": "CLOUD DATABASE (VPC) Created status"
                },
                "cloudHadoopInstanceOperation": {
                    "code": "SETUP",
                    "codeName": "CLOUD DATABASE(VPC) Setup OP"
                },
                "cloudHadoopClusterType": {
                    "code": "CORE_HADOOP_WITH_SPARK",
                    "codeName": "Core Hadoop with Spark : HDFS(3.1.1), YARN(3.1.1), Zookeeper(3.4.9), Ranger(2.0.0), HIVE(3.1.2), Hue(4.8.0), Zeppelin Notebook(0.10.1), Spark (2.4.8)"
                },
                "cloudHadoopVersion": {
                    "code": "HADOOP2.1",
                    "codeName": "Cloud Hadoop 2.1"
                },
                "cloudHadoopAddOnList": [],
                "ambariServerHost": "e-001-clus1-5u29-hd",
                "clusterDirectAccessAccount": "sshuser",
                "loginKey": "**********",
                "objectStorageBucket": "bk1",
                "cloudHadoopImageProductCode": "SW.VCHDP.LNX64.CNTOS.0708.HDP.21.B050",
                "isHa": true,
                "createDate": "2025-02-18T14:10:25+0900",
                "domain": "pub-*****.hadoop.ntruss.com",
                "useDataCatalog": false,
                "accessControlGroupNoList": [
                    "20****"
                ],
                "cloudHadoopServerInstanceList": [
                    {
                        "cloudHadoopServerInstanceNo": "2707****",
                        "cloudHadoopServerName": "e-001-clus1-5u29-hd",
                        "cloudHadoopServerRole": {
                            "code": "E",
                            "codeName": "Edge Node"
                        },
                        "cloudHadoopServerInstanceStatusName": "running",
                        "cloudHadoopServerInstanceStatus": {
                            "code": "RUN",
                            "codeName": "CLOUD DATABASE (VPC) server Running status"
                        },
                        "cloudHadoopServerInstanceOperation": {
                            "code": "NOOP",
                            "codeName": "CLOUD DATABASE (VPC) server null OP"
                        },
                        "cloudHadoopProductCode": "SVR.VCHDP.EDGND.HICPU.C008.M016.NET.HDD.B050.G002",
                        "regionCode": "KR",
                        "zoneCode": "KR-2",
                        "vpcNo": "7****",
                        "vpcName": "****",
                        "subnetNo": "17****",
                        "subnetName": "****",
                        "privateIp": "***.***.***.***",
                        "isPublicSubnet": true,
                        "dataStorageSize": 107374182400,
                        "cpuCount": 8,
                        "memorySize": 17179869184,
                        "uptime": "2025-02-18T16:05:05+0900",
                        "createDate": "2025-02-18T14:10:26+0900"
                    },
                    {
                        "cloudHadoopServerInstanceNo": "2707****",
                        "cloudHadoopServerName": "m-001-clus1-5u27-hd",
                        "cloudHadoopServerRole": {
                            "code": "M",
                            "codeName": "Master Node"
                        },
                        "cloudHadoopServerInstanceStatusName": "running",
                        "cloudHadoopServerInstanceStatus": {
                            "code": "RUN",
                            "codeName": "CLOUD DATABASE (VPC) server Running status"
                        },
                        "cloudHadoopServerInstanceOperation": {
                            "code": "NOOP",
                            "codeName": "CLOUD DATABASE (VPC) server null OP"
                        },
                        "cloudHadoopProductCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002",
                        "regionCode": "KR",
                        "zoneCode": "KR-2",
                        "vpcNo": "7****",
                        "vpcName": "****",
                        "subnetNo": "17****",
                        "subnetName": "****",
                        "privateIp": "***.***.***.***",
                        "isPublicSubnet": false,
                        "dataStorageType": {
                            "code": "SSD",
                            "codeName": "SSD"
                        },
                        "dataStorageSize": 107374182400,
                        "cpuCount": 4,
                        "memorySize": 17179869184,
                        "uptime": "2025-02-18T14:15:06+0900",
                        "createDate": "2025-02-18T14:10:26+0900"
                    },
                    {
                        "cloudHadoopServerInstanceNo": "2707****",
                        "cloudHadoopServerName": "m-002-clus1-5u28-hd",
                        "cloudHadoopServerRole": {
                            "code": "M",
                            "codeName": "Master Node"
                        },
                        "cloudHadoopServerInstanceStatusName": "running",
                        "cloudHadoopServerInstanceStatus": {
                            "code": "RUN",
                            "codeName": "CLOUD DATABASE (VPC) server Running status"
                        },
                        "cloudHadoopServerInstanceOperation": {
                            "code": "NOOP",
                            "codeName": "CLOUD DATABASE (VPC) server null OP"
                        },
                        "cloudHadoopProductCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002",
                        "regionCode": "KR",
                        "zoneCode": "KR-2",
                        "vpcNo": "7****",
                        "vpcName": "****",
                        "subnetNo": "17****",
                        "subnetName": "****",
                        "privateIp": "***.***.***.***",
                        "isPublicSubnet": false,
                        "dataStorageType": {
                            "code": "SSD",
                            "codeName": "SSD"
                        },
                        "dataStorageSize": 107374182400,
                        "cpuCount": 4,
                        "memorySize": 17179869184,
                        "uptime": "2025-02-18T14:15:17+0900",
                        "createDate": "2025-02-18T14:10:26+0900"
                    },
                    {
                        "cloudHadoopServerInstanceNo": "2707****",
                        "cloudHadoopServerName": "d-001-clus1-5u2a-hd",
                        "cloudHadoopServerRole": {
                            "code": "D",
                            "codeName": "Date Node"
                        },
                        "cloudHadoopServerInstanceStatusName": "running",
                        "cloudHadoopServerInstanceStatus": {
                            "code": "RUN",
                            "codeName": "CLOUD DATABASE (VPC) server Running status"
                        },
                        "cloudHadoopServerInstanceOperation": {
                            "code": "NOOP",
                            "codeName": "CLOUD DATABASE (VPC) server null OP"
                        },
                        "cloudHadoopProductCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002",
                        "regionCode": "KR",
                        "zoneCode": "KR-2",
                        "vpcNo": "7****",
                        "vpcName": "****",
                        "subnetNo": "17****",
                        "subnetName": "****",
                        "privateIp": "***.***.***.***",
                        "isPublicSubnet": false,
                        "dataStorageType": {
                            "code": "SSD",
                            "codeName": "SSD"
                        },
                        "dataStorageSize": 107374182400,
                        "cpuCount": 4,
                        "memorySize": 17179869184,
                        "uptime": "2025-02-18T14:15:10+0900",
                        "createDate": "2025-02-18T14:10:26+0900"
                    },
                    {
                        "cloudHadoopServerInstanceNo": "2707****",
                        "cloudHadoopServerName": "d-002-clus1-5u2b-hd",
                        "cloudHadoopServerRole": {
                            "code": "D",
                            "codeName": "Date Node"
                        },
                        "cloudHadoopServerInstanceStatusName": "running",
                        "cloudHadoopServerInstanceStatus": {
                            "code": "RUN",
                            "codeName": "CLOUD DATABASE (VPC) server Running status"
                        },
                        "cloudHadoopServerInstanceOperation": {
                            "code": "NOOP",
                            "codeName": "CLOUD DATABASE (VPC) server null OP"
                        },
                        "cloudHadoopProductCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002",
                        "regionCode": "KR",
                        "zoneCode": "KR-2",
                        "vpcNo": "7****",
                        "vpcName": "****",
                        "subnetNo": "17****",
                        "subnetName": "****",
                        "privateIp": "***.***.***.***",
                        "isPublicSubnet": false,
                        "dataStorageType": {
                            "code": "SSD",
                            "codeName": "SSD"
                        },
                        "dataStorageSize": 107374182400,
                        "cpuCount": 4,
                        "memorySize": 17179869184,
                        "uptime": "2025-02-18T14:15:11+0900",
                        "createDate": "2025-02-18T14:10:26+0900"
                    },
                    {
                        "cloudHadoopServerInstanceNo": "2707****",
                        "cloudHadoopServerName": "d-003-clus1-5u3q-hd",
                        "cloudHadoopServerRole": {
                            "code": "D",
                            "codeName": "Date Node"
                        },
                        "cloudHadoopServerInstanceStatusName": "creating",
                        "cloudHadoopServerInstanceStatus": {
                            "code": "PEND",
                            "codeName": "CLOUD DATABASE (VPC) server Pending status"
                        },
                        "cloudHadoopServerInstanceOperation": {
                            "code": "CREAT",
                            "codeName": "CLOUD DATABASE (VPC) server Create OP"
                        },
                        "cloudHadoopProductCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002",
                        "regionCode": "KR",
                        "zoneCode": "KR-2",
                        "vpcNo": "7****",
                        "vpcName": "****",
                        "subnetNo": "17****",
                        "subnetName": "****",
                        "privateIp": "***.***.***.***",
                        "isPublicSubnet": false,
                        "dataStorageType": {
                            "code": "SSD",
                            "codeName": "SSD"
                        },
                        "dataStorageSize": 107374182400,
                        "cpuCount": 4,
                        "memorySize": 17179869184,
                        "uptime": "2025-02-18T15:42:14+0900",
                        "createDate": "2025-02-19T16:37:59+0900"
                    }
                ]
            }
        ],
        "requestId": "6912ecdc-****-****-****-369d84e9b334",
        "returnCode": "0",
        "returnMessage": "success"
    }
}