Available in Classic
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 | /hadoop/v2/changeWorkerNodeCount |
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 |
---|---|---|---|
cloudHadoopInstanceNo |
String | Required | Cluster instance number |
workerNodeCount |
Integer | Required | Number of worker nodes
|
responseFormatType |
String | Optional | Format of the response data
|
Request example
The request example is as follows:
curl --location --request GET 'https://ncloud.apigw.ntruss.com/hadoop/v2/changeWorkerNodeCount?cloudHadoopInstanceNo=2777****&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}' \
--header 'x-ncp-apigw-api-key: {API Key}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
changeWorkerNodeCountResponse |
Object | - | Response result |
changeWorkerNodeCountResponse.totalRows |
Integer | - | Number of response results |
changeWorkerNodeCountResponse.cloudHadoopInstanceList |
Array | - | Cluster list |
changeWorkerNodeCountResponse.requestId |
String | - | ID for the request
|
changeWorkerNodeCountResponse.returnCode |
String | - | Response code |
changeWorkerNodeCountResponse.returnMessage |
String | - | Response message |
changeWorkerNodeCountResponse.cloudHadoopInstanceList
The following describes changeWorkerNodeCountResponse.cloudHadoopInstanceList
.
Field | Type | Required | Description |
---|---|---|---|
cloudHadoopInstanceNo |
String | - | Cluster instance number |
cloudHadoopClusterName |
String | - | Cluster name |
cloudHadoopImageProductCode |
String | - | Cluster image code |
cloudHadoopClusterType |
Object | - | Cluster type information |
cloudHadoopClusterType.code |
String | - | Cluster type code
|
cloudHadoopClusterType.codeName |
String | - | Cluster type code name |
masterNodeCpuCount |
Integer | - | Number of master node CPUs |
masterNodeCount |
Integer | - | Number of master nodes |
masterNodeMemorySize |
Integer | - | Master node memory capacity (byte) |
workerNodeCpuCount |
Integer | - | Number of worker node CPUs |
workerNodeCount |
Integer | - | Number of worker nodes |
workerNodeMemorySize |
Integer | - | Worker node memory capacity (byte) |
edgeNodeCpuCount |
Integer | - | Number of edge node CPUs |
edgeNodeCount |
Integer | - | Number of edge nodes |
edgeNodeMemorySize |
Integer | - | Edge node memory capacity (byte) |
cloudHadoopInstanceOperation |
Object | - | Cluster operation information
|
cloudHadoopInstanceOperation.code |
String | - | Cluster operation code
|
cloudHadoopInstanceOperation.codeName |
String | - | Cluster operation code name |
cloudHadoopInstanceStatusName |
String | - | Cluster status name
|
publicDnsName |
String | - | Public domain |
publicIp |
String | - | Public IP address |
isHa |
Boolean | - | High availability support
|
zone |
Object | - | Zone information |
zone.zoneNo |
String | - | Zone number |
zone.zoneName |
String | - | Zone name |
zone.zoneCode |
String | - | Zone code |
zone.zoneDescription |
String | - | Zone description |
zone.regionNo |
String | - | Region number |
region |
Object | - | Region information |
region.regionNo |
String | - | Region number |
region.regionCode |
String | - | Region code |
region.regionName |
String | - | Region name |
masterNodeServerName |
String | - | Master node server name |
createDate |
String | - | Cluster creation date and time
|
dataArchitecture |
String | - | Data architecture |
bucketName |
String | - | Object Storage bucket name |
directConnectionAccount |
String | - | Cluster's direct access account |
loginKeyName |
String | - | Authentication key name |
accessControlGroupList |
Array | - | ACG list |
accessControlGroupList
The following describes accessControlGroupList
.
Field | Type | Required | Description |
---|---|---|---|
accessControlGroupConfigurationNo |
String | - | ACG ID |
accessControlGroupName |
String | - | ACG name |
accessControlGroupDescription |
String | - | Notes for the ACG |
isDefault |
Boolean | - | Whether it is a default ACG
|
createDate |
String | - | ACG creation date and time
|
Response status codes
For information about the HTTPS status codes common to all Cloud Hadoop APIs, see Cloud Hadoop response status codes.
Response example
The response example is as follows:
{
"changeWorkerNodeCountResponse": {
"totalRows": 1,
"cloudHadoopInstanceList": [
{
"cloudHadoopInstanceNo": "2777****",
"cloudHadoopClusterName": "cluster",
"cloudHadoopImageProductCode": "SPSWCHADPLINUX03",
"cloudHadoopClusterType": {
"code": "CHADP",
"codeName": "Core Hadoop"
},
"masterNodeCpuCount": 4,
"masterNodeCount": 2,
"masterNodeMemorySize": 8589934592,
"workerNodeCpuCount": 4,
"workerNodeCount": 2,
"workerNodeMemorySize": 34359738368,
"edgeNodeCpuCount": 4,
"edgeNodeCount": 1,
"edgeNodeMemorySize": 8589934592,
"cloudHadoopInstanceOperation": {
"code": "SETUP",
"codeName": "Cloud Hadoop SETUP OP"
},
"cloudHadoopInstanceStatusName": "settingup",
"publicDnsName": "****.hadoop.ntruss.com",
"publicIp": "***.***.***.***",
"isHa": true,
"zone": {
"zoneNo": "3",
"zoneName": "KR-2",
"zoneCode": "KR-2",
"zoneDescription": "Pyeongchon zone",
"regionNo": "1"
},
"region": {
"regionNo": "1",
"regionCode": "KR",
"regionName": "Korea"
},
"masterNodeServerName": "m-001-cluster-hd",
"createDate": "2025-02-28T09:16:46+0900",
"dataArchitecture": "OBJST",
"bucketName": "dataforest",
"directConnectionAccount": "sshuser",
"loginKeyName": "test-123",
"accessControlGroupList": [
{
"accessControlGroupConfigurationNo": "192****",
"accessControlGroupName": "cloud-hadoop-gjb5m",
"accessControlGroupDescription": "Group for Cloud Hadoop cluster cluster (automatically created)",
"isDefault": false,
"createDate": "2025-02-28T09:16:48+0900"
}
]
}
],
"requestId": "21e41806-****-****-****-e89ded4655ed",
"returnCode": "0",
"returnMessage": "success"
}
}